Setting Synchronization Mode in a Template
See Also
By default, templates use the Confirm All Changes setting for the Synchronization
Mode property. You can edit a template's properties to use a different default
synchronization mode for new Java files.
You can also create custom Java templates and set the default synchronization
mode for them.
To change the synchronization mode for a template:
- From the main window, choose Tools
Options.
- In the Options window, expand the Source Creation and Management node and
the Templates node. Expand the appropriate template category node and select
the Java template you want to change.
- Click the value for the Synchronization Mode property and select a mode
from the combo box. See Setting Source Synchronization
Properties for definitions of the property options.
To create a custom template and assign it a synchronization mode:
-
Create a file from a Java template and give the file the name you want to use
for the template.
-
In the Source Editor, make any modifications you want to the file's
source code.
-
Right-click the file in the Filesystems window and choose Properties.
-
In the Properties window, click the Properties tab.
-
Click the value for the Synchronization Mode property and select a mode from the
combo box.
-
Right-click the file in the Filesystems window and choose Save as Template.
-
In the Save as Template dialog box, select a template category and click OK.
The new template is available in the template chooser.
Legal Notices