execute file Template

i want to utilise file templates
how do i execute file template on a newly created file (or existing one)
i can register it with addTemplate(FileTemplateDescriptor) is'nt it?
how to register FileTemplateGroupDescriptorFactory in the ide as template provider....
am i missing something
but how to apply it to a file
thanks
joe

2 comments

Hello joe,

j> how do i execute file template on a newly created file (or existing
j> one)
j> i can register it with addTemplate(FileTemplateDescriptor) is'nt it?
j> but how to apply it to a file

PsiDirectory.createClass(String name, String templateName)

--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"


0

hi Dmitry
i am working on 5.x version and it seems that it is not available there(i found it in 6beta)
AND my template will not create Class it will create an xml skeleton
so how it is done for xml file in 5.x
joe

0

Please sign in to leave a comment.