Re: Customize the file->new project menu

geertjan wielenga <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Organization Oracle Corporation
Message-ID <[email protected]>
https://blogs.oracle.com/geertjan/entry/privileged_and_recommended_templates

Gj

On 4-3-2016 0:34, Todd Stevenson wrote:
>
> I have a NetBeans application that uses a custom file type.  I 
> followed the tutorials to set up the mechanism to create new files and 
> everything works great. However, when I added a second template to my 
> @templateregistrations annotation, only one of the templates appear on 
> the new-> popup menu in the project panel.  I don't remember if I had 
> to do something special to get it to appear on the popup menu.  
> Apparently it does not see my templateregistrations.
>
> I created the popup action using CommonProjectActions.newFileAction() 
> and my first template appears on that menu.   What I want to do is 
> customize that 'new' menu item to only have my templates appear on the 
> menu. Any ideas on how to create a custom menu that does this for me?
>
> *Todd Stevenson*
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.