Geertjan's Blog

  • June 28, 2005

Sequencing the File Templates in the NetBeans New File Wizard

Geertjan Wielenga
Product Manager
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="ServletTestCase.java/Package.shadow" boolvalue="true" />

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

Join the discussion

Comments ( 1 )
  • Rita Chen Thursday, August 4, 2005
    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.
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.