Editing Class Diagrams
Adding UML elements to a Class Diagram
To add existing UML elements (classes/interfaces) to a Class Diagram:
- Open, or set the focus to, the desired Class Diagram.
- Select the desired UML element(s) in the Model Explorer.
- Either:
- invoke .
or
- right-click on the selection and invoke
from the pop up menu.
or
- press Ctrl + Alt + Insert.
Creating new UML elements
To create a new class / interface, use one of the following two methods:
- Using the
:
- Open, or set the focus to, the desired Class Diagram.
- Activate the
, if it wasn't already.
- Click somewhere in the empty space of the diagram drawing area.
- Either:
- invoke .
or
- right-click on the selection and invoke
from the pop up menu.
or
- by pressing Alt + Insert.
- Choose the new UML element to be created.
- Using the
or
:
- Open, or set the focus to, the desired Class Diagram.
- Activate the
or
.
- Click somewhere in the empty space of the diagram drawing area.
- Enter the new class or interface name.
- Press and the newly created class or interface
will show up in the Class Diagram at the position you clicked with the mouse.
To create a new attribute / operation:
- Open, or set the focus to, the desired Class Diagram.
- Activate the
, if it wasn't already.
- Select the desired class / interface.
- Either:
- invoke .
or
- right-click on the selection and invoke
from the pop up menu.
or
- press Alt + Insert.
- Choose the new UML element to be created.
To create a new ,
or relationship
between two elements:
- Open, or set the focus to, the desired Class Diagram.
- Activate the
,
or
.
- Hover the mouse over the first class/interface - if the class/interface under
the mouse is a valid target for the active tool then a green border will appear
surrounding it.
- Click on the highlighted class/interface to set the subclass/subinterface
for the
,
implementation class for the
or
source end for the
.
- Hover the mouse over the second class/interface - again if the class/interface under
the mouse is a valid target for the active tool then a green border will appear
surrounding it.
- Click on the highlighted class/interface to set the superclass/superinterface
for the
,
implemented interface for the
or
target end for the
.