Code Template Tools on my NetBeans 5.0 Update Center.
I have uploaded the Code Template Tools module on my NetBeans 5.0 Update Center described here. The Code Template Tools module enables you to interactively work with code templates in most NetBeans text editors. Here is a quick summary of the features:
- Create a code template based on the selection in the editor. In the example below I had selected the SPL comment in my text editor and invoked the Create Template action:

- Use a code template parameter - ${selection}. This parameter is replaced by the current selection in your text editor at the time of insertion of a code template which uses the ${selection}. This allows you to write so called "Surround-with" code templates that surround some (selected) code. For example surrounding a block of statements with "if (condition) {" prefix and "}" suffix. Someday I will blog about how to add your own code template parameters. IMHO, the ability to add you own code templates parameters is under appreciated but very powerful functionality.
- Insert a code template after selecting it from a dialog. This is essential because of the above feature. You can modify or delete the templates in this dialog.

- Simulate registers 0-9 and A-Z. The registers are simulated using specially named code templates.
For full details read the online help (
Help:Help Content menu) after installing the module or click
here.
Sources
The sources are here.
DISCLAIMER: This module is experimental. So no guarantees. Use the module at your own risk.
Posted by sandipchitale
( Jan 22 2006, 09:03:17 AM PST ) Permalink
Trackback URL: http://blogs.sun.com/scblog/entry/code_template_tools_on_the
Posted by Greg Tangey on January 23, 2006 at 06:21 PM PST #
Posted by sandip on January 23, 2006 at 06:52 PM PST #