I like to make my file templates appear under j2ee tab of FileTemplate dialogue. I've added a fileTemplateGroup by implementing FileTemplateGroupDescriptorFactory interface and it works fine; meaning my templates appears as it should be. BUT when I select them on FileTemplate dialogue, no contents are available for them. I searched through this forum and some other plugin source code. It seems that there should be some convention for contents of file templates in order to be presented under that dialogue. Those plugin's packaging structure contains a root package named fileTemplates having a j2ee package as a child. I tried it and placed my file templates under such directory, but it doesn't work.
I know from some other threads (http://intellij.net/forums/thread.jspa?messageID=5215371) that there is another method to register file templates on IntelliJ. It's possible using FileTemplateManager 's addTemplate method, calling it from an application component. In this manner, you should fill content of your newly created FileTemplate, using manually loaded template file (.ft file). I don't like to use such method (I prefer using more declarative approach like fileTemplateGroup ). But if there is no other method to do this, it would be ok. Of course there will be another question :)
The sample file template registration code (available at thread mentioned above) uses a utility class named JSSupportLoader to load templates file. I didn't find this class on my sdk classpath. I think it should be on some other plugins. However, I like to know what is the openapi utility class for opening such files as streams, readers, and so.