Customize the file->new project menu

Todd Stevenson <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
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.