Using Source File Templates

You can create new source files in NetBeans from templates.  3GL language templates are installed with Distributed NetBeans.

See Also
Adding Custom Templates

Changing Template Properties

  To create a new source file or command file

1.  Select your project in Filesystems and Click the New button  to bring up the New Wizard Template Chooser - or - Right-click in Filesystems and click New in the context menu.

2.  Select Templates, and choose from the OpenVMS language lists.

3.  Once you have selected your template, click Next and specify a file name and target location. When you click Finish the new file will automatically open in the Source Editor.

Usage Notes
Distributed NetBeans uses a default name if you do not specify a name. It saves the file in the currently selected directory in Filesystems if you do not specify a directory.

If you use the right-click context menu from Filesystems, once you select a template,  the New Wizard screen is displayed wherein you can specify a file name. The target location is the project you have selected in Filesystems.

The following example shows the list of OpenVMS COBOL templates.

    

The New Wizard lets you browse and select templates

Adding Custom Templates

You can make any existing source file readily reusable by saving it as a template.

Make sure the Template property of the file is set to True.

  To add a custom template

1.  Right-click the file in Filesystems that you want to save as a template.

2.  In the context menu, select Save As Template. In the dialog box expand the appropriate OpenVMS template folder.

3.  Click  OK.  (Do not select the listed templates.)

Changing Template Properties

Templates contain properties such as compilation properties that are propagated to source files. These properties may be modified as you require.

  To change template properties

1.  Select Options from the Tools menu.

2.  Select Source Creation and Management > Templates > OpenVMS language