Specifying relationships in diagrams

In UML, relationships identify the semantic ties that exist between model elements. To add relationships to a model, you must work either in the diagram editor or in the Project Explorer view.

About this task

To specify a relationship in a model:

Procedure

  1. In the Palette, on the Create tab, click a type of relationship.
  2. In the diagram editor, click a classifier and drag the cursor to another classifier.

What to do next

As a shortcut, you can also create relationships without opening a diagram or showing elements on a diagram. To create a relationship in this way, right-click the source element in the Project Explorer view, click Add UML > Relationship, and then click the type of relationship or Advanced to see a list of the possible relationships from the source element to a target element.

You can also create relationships by selecting an element in the diagram editor or Project Explorer view, opening the Properties view to the Relationships tab, and then clicking Add.


Feedback