Component Diagram Context Commands

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.

UML 1.4

The component diagram offers a special context command, named New with a submenu for adding new elements to the component diagram:

New

The New command for the component diagram offers a submenu with the following options:

Subsystem

Choosing Subsystem adds a subsystem element to the diagram.

Component

Choosing Component adds a component element to the diagram.

Interface

Choosing Interface adds an interface element to the diagram.

Note

Choosing Note adds a note element to the diagram.

Shortcut

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.

UML 2.0

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:

New

The New command for the collaboration diagram offers a submenu with the following additional options:

Artifact

Choose Artifact from the New submenu to add this element to the component diagram.