Setting Source Synchronization Properties
You can specify source synchronization properties for individual source
files or entire projects. If synchronization is disabled globally, the
individual source file properties are ignored.
To set synchronization properties for a source file:
- In the Explorer, select the file. Choose View
Properties
from the main window to open the Properties window for that file.
- In the Properties window, select the Synchronization Mode property.
Set the property to one of the following:
- Do Not Synchronize. This disables automatic synchronization, but
you can still manually synchronize the class at any time using Tools
Synchronize from the class's contextual
menu.
- Confirm All Changes. The default and recommended setting. If
selected, the Confirm Changes dialog box is displayed whenever an interface
is implemented or an interface method is added or changed, enabling you to
specify the methods to be synchronized.
- Without Confirmation. All interface methods are automatically
generated and updated in the implementing classes without confirmation.
To set global synchronization properties:
- From the main window, choose Project
Settings to open the Project Settings window.
- In the Project Settings window, expand the Java Sources node and select
the Source Synchronization subnode.
- In the property sheet pane, set these properties:
- Return Generation Mode. When creating a new method declared to
return a value, this property determines whether to generate code that returns
nothing, an exception, or a neutral value for the return type (null for
reference types, zero for numeric types, or an empty string for strings).
- Synchronization Enabled. Turns the automatic source synchronization
feature on or off. This property applies only to the automatic synchronization.
You can always choose Tools
Synchronize from
the contextual menu of the implementation class in the Explorer to synchronize
source at any time.
 |
Automatic source synchronization occurs just after parsing, which by
default occurs after a two-second break in typing.
If you want to change the amount of time between typing and parsing, change
the Automatic Parsing Delay property of the Java Sources node in the Project
Settings window.
|
Legal Notices