All of the UML diagram types share common context menu commands. To use the context menu for a diagram, simply right click in the Diagram view.
To view the common context menu commands, see Common Diagram Context Commands.
You can model component diagrams using either UML 1.4 or UML 2.0 features.
The component diagram offers a special context command, named New with a submenu for adding new elements to the component diagram:
The New command for the component diagram offers a submenu with the following options:
Choosing Subsystem adds a subsystem element to the diagram.
Choosing Component adds a component element to the diagram.
Choosing Interface adds an interface element to the diagram.
Choosing Note adds a note element to the diagram.
To refer to an element located outside of the current diagram, or to another diagram, you can use shortcuts. Invoking the Shortcut command displays a selection dialog, where you can choose the desired element (or diagram) from the appropriate location.
When working with UML 2.0 features, the component diagram still offers the special context menu named, New, however, you will notice that an additional element exists in the submenu, Artifact:
The New command for the collaboration diagram offers a submenu with the following additional options:
Choose Artifact from the New submenu to add this element to the component diagram.