Synchronizing Source in a New Interface

  1. When implementing a new interface in the Source Editor, type implements InterfaceName on the class declaration line of the source file.

    Alternatively, you can implement a new interface using the Implements property or Customizer on the class node. (Right-click the class node in the Explorer and choose Customize or Properties from the contextual menu.)

  2. Wait a few seconds for the source to be parsed, or save the file. The Confirm Changes dialog box appears listing all the methods to be added to the new implementation class. To add methods, select one of the following options: If you do not want to add any methods, skip to the next step.

  3. If desired, set the Synchronization Mode property for the destination class by clicking one of the buttons at the bottom of the dialog box.

  4. Click Close.
OpenAPI calls from other modules to org.openide.src.ClassElement.setInterfaces() or addInterface also trigger source synchronization.
See also
Synchronizing Source Code

Setting Source Synchronization Properties

Synchronizing Source When Updating an Interface

Legal Notices