Sequencing the File Templates in the NetBeans New File Wizard

I've made some progress in understanding how file templates work. The most interesting thing so far was discovering, yesterday, how to sequence categories in the New File wizard. I applied the same principle today while creating the basis for file templates for each of the test cases supported by Cactus. By default, file templates are listed alphabetically. This means that in the screenshot below, the "Java Package" template should come above the "Servlet Test Case" template.

However, by adding this line right above the declaration of the Java Package in the layer.xml file, I specified that it should appear after the "Servlet Test Case" template:

<attr name="" boolvalue="true" />

In some ways, it's a very small detail. In others, it's pretty cool to know how to do it.


Yeh, it is cool. But can you tell me how to group multiple templates to one group? NB3.6 can do it. By selecting this one group, multiple files can be generated at same time. It is not working in NB4.1 and 4.2.

Posted by Rita Chen on August 04, 2005 at 08:10 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« August 2015