Source synchronization
Source synchronization is a feature that helps to keep your Java source files current by:
- Automatically generating an interface's methods for you when you implement that interface in a source file; and
- Automatically updating all source files mounted in the Explorer that implement the interface when you change a method in or add a method to that interface.
Source synchronization works with all interfaces shown under the Filesystems tab in the Explorer and all standard interfaces in the Java 2 SDK. You can choose to synchronize source automatically just after parsing (which, by default, occurs after a two-second break in typing and insertion point movement) with or without confirmation, or explicitly by choosing Tools | Synchronize from the contextual menu of the implementing class in the Explorer.
All source files have a
Synchronization Mode
property on their property sheet (accessed by choosing View | Properties from the main menu). The property can be set to:
- Do not synchronize.
- Confirm changes - the default (and recommended) setting. The Confirm Changes dialog box appears enabling you to specify which methods are to be synchronized.
- Without confirmation - all interface methods are automatically generated for the implementing classes without a dialog box appearing to prompt you to confirm the changes.
Contents | Prev | Next | Index |