Synchronizing source
To synchronize (with confirmation) when implementing a new interface in a class:
- In the Editor window, type implements InterfaceName in the class declaration line of the source file.
- Wait a few seconds for the source to be parsed, or save or compile the file. The Confirm Changes dialog box will then appear listing all of the methods to be added to the class. The dialog box gives you the following options.
You can change the synchronization mode for the destination class by selecting one of the radio buttons at the bottom of the dialog box.
To synchronize (with confirmation) when changing or adding methods to an interface:
- Add the method(s) to the interface code and then wait for parsing to occur and the Confirm Changes dialog box to appear. The dialog box will display the updated methods for the first class found that implements the interface.
- Follow step 2 from the previous procedure.
If you have multiple source files (in directories mounted in Filesystems) that implement the changed interface, a Confirm Changes dialog box will appear for each one of them.
If you have automatic synchronization disabled on a specific source file or for all source files, you can still synchronize a class with its interface's methods by choosing Synchronize from the class's contextual menu.
Note: The Synchronize command only works when chosen on class objects (not interfaces).
Contents | Prev | Next | Index |