Re: Java template folder

Vitezslav Stejskal <[email protected]> Thu, 31 Jul 2003 13:58:34 +0200
Newsgroups gmane.comp.java.netbeans.modules.projects.devel
Message-ID <[email protected]>

Tomas Zezula wrote:

>On Wed, 2003-07-30 at 18:59, Peter Wisnovsky wrote:
>  
>
>>I'd like to have my module add some templates to the list provided by
>>the Java module (e.g. "Applet", "Class", etc.). I used to do this by
>>having templates in my layer file in the folder
>>
>>  <folder name="Templates">
>>   <folder name="Classes">
>>
>>Instead this created another "Classes" dir in the AllTemplates folder;
>>I tried changing this to imitate the path in java-nature.xml to 
>>
>>  <folder name="Templates">
>>   <folder name="SourceFiles">
>>    <folder name="Classes">
>>
>>but now they end up in AllTemplates/SourceFiles/Classes. Is it still
>>possible to add templates to the Java module's directory?
>>    
>>
>Yes,it is,
>but in the current implementation you have to put the templates into the
>nature.
>You have to either create your own nature or reopen other nature and put
>your templates into the folder Templates/SourceFiles/Classes.
>Tomas
>
In other words, put your templates in 
<SFS>/Projects/Natures/<some-nature>/Templates/SourceFiles/Classes
-vita