Creating Classes and Interfaces

To create a class or interface, choose one of the following methods:

Using the diagram toolbar button:

  1. Click the Class button or the Interface button on the diagram toolbar.


  2. Click on the diagram to create the element.

Using the diagram context menu:

  1. In Diagram view, right click on the background.


  2. From the context menu, select New > Class or New > Interface.

Using the element context menu:

  1. In the UML Navigator view, right click on the package or class diagram that will contain the new class or interface.


  2. From the context menu, select New > Class or New > Interface.

After creating the class or interface using any of the above methods, the Editor opens and displays the newly created source element.