To create a class or interface, choose one of the following methods:
Using the diagram toolbar button:
Click the Class button
or the Interface button
on the diagram
toolbar.
Click on the diagram to create the element.
Using the diagram context menu:
In Diagram view, right click on the background.
From the context menu, select New > Class or New > Interface.
Using the element context menu:
In the UML Navigator view, right click on the package or class diagram that will contain the new class or interface.
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.