Improved handling of file templates in NetBeans 7.0

NetBeans allows IDE users (or users of application built of top of NetBeans RCP) to use predefined templates of files for creating standard files (e.g. Java classes, Swing forms, Configurations etc.). Besides this, users would like to save own files as a template for further usage or customize predefined templates to their taste.

During recent NetBeans releases we got a lot of feedback about file templates handling, unluckily many of them were bug reports or other complaints. A pretty good summary did Petr Pisl in his blog http://blogs.sun.com/netbeansphp/entry/how_to_manage_templates_in. On base of that, on bug reports and using RFEs is Issuezilla I created a wikipage FileTemplatesOpenIssues where I did a evaluation of troubles in file templates handling and link up problems with corresponding issues in Issuezilla.

So, and now some better news :-) I've been aimed to fix some of them in current development phase of next NetBeans 7.0 release. Many of problem should be fixed in Milestone1 of NB7.0 which is coming soon - accorning to NetBeans70 plan.

In detail, which parts will be better:

  • newly created templates, or templates which come from Save as template action, have now attached a script engine, usually the Freemarker, for processing content of such templates,
  • there is a better support for customizing display names of templates,
  • template categories in Tools|Templates are sorted for easily navigating,
  • users now can customize of template properties in Tools|Templates dialog.
If you are interested in this area, wait for upcoming Milestone1 and review it. It should work much better I believe. Anyway, thanks for your feedback in advance.
Comments:

Thanks for doing this, Jirka. It will make working with customized templates much easier!

Posted by Tom Wheeler on December 05, 2008 at 11:01 AM CET #

This improvement is really needed.

Posted by Landing Page Templates on December 06, 2008 at 03:33 PM CET #

Hi Jiri,

is it possible to store templates in the project folder. I have defined a new license template and set the "project-license" property in the "project.xml" file of my fre-form Java project. I can now create a new license template, but it will be sored on my personal .netbeans directory under "config/Templates/Licenses/license-sap.txt". If other users open the project, they will get an error message when they create new files, because the license file can not be found on there machines.

Is there a way to store templates in the project directory (preferably under "nbproject/") such that everybody can use these templates?

Thank you and best regards,
Volker

Posted by Volker H. Simonis on January 08, 2009 at 09:13 AM CET #

Hi Volker,
I'm afraid I can help you with this problem. I'll discuss it with guys working on NetBeans project support and let you know.
Regards,
Jiri

Posted by Jiri Rechtacek on January 11, 2009 at 07:24 AM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Rechtacek's

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today