Creating top-level Java interfaces
In UML visualization, you can create Java interfaces that are not enclosed in other types (top-level interfaces).
To create a top-level Java interface:
- In the Palette, click Interface and click an empty space inside the class diagram.
- In the New Java Interface wizard, in the Source Folder field, specify the source folder for the new interface.
- In the Package field, specify the package to contain the new interface. If you want the new interface to be created in the default package, leave this field empty.
- Clear the Enclosing type check box.
- In the Name field, type a name for the new interface.
- Under Modifiers, select either the public or default access modifier.
- Click Add beside the Extended Interfaces field.
- In the Extended Interfaces Selection window, select the extended interfaces and click Add, and OK.
- Click Finish.
Parent topic
Creating Java elements
Related tasks
Creating Java packages
Creating top-level Java classes
Creating nested Java classes
Creating nested interfaces