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, right-click the file and choose Properties.
- In the Properties window, select the Synchronization Mode property.
Set the property to one of the following:
- Do Not Synchronize. Disables automatic synchronization. You can
still manually synchronize the class at any time by right-clicking the
class in the Explorer and choosing Tools
Synchronize.
- 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 Tools
Options.
- In the Options window, expand the Editing node. Then expand the Java Sources
node and select Source Synchronization.
- 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.
If you choose to return a neutral value, the IDE returns 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 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 Options
window.
|
Legal Notices