Collaboration 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 collaboration diagrams using either UML 1.4 or UML 2.0 features.

UML 1.4

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

New

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

Object

Choosing Object adds an object element to the diagram.

Actor

Choosing Actor adds an actor 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.

AutoFix

Together automatically synchronizes changes between the collaboration diagram and class diagram. If problems exist on the collaboration diagram, they will be highlighted on the diagram in red. Use AutoFix to correct these problems. Upon selecting AutoFix, the Solve Problems dialog displays:


The problem will be described in the list on the left side of the dialog. Select the problem from the list that you wish to correct, and use the options listed under the "Available Solutions" list to fix. Click "Apply" and "Finish" to exit the dialog.

AutoLink Labels

The AutoLink Labels command displays a dialog if there are operations on the diagram that were previously saved and unlinked using the Autofix dialog.

Show as Sequence

Using this command you can convert your collaboration diagram into its corresponding sequence diagram. The resulting sequence diagram displays in the Diagram view.

UML 2.0

When working with UML 2.0 features, the collaboration diagram offers the special context menu named, New, however, as shown below, you will notice that two different elements appear in the submenu: Lifeline and InteractionOccurrence.

New

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

Lifeline

Choosing Lifeline adds a lifeline element to the diagram.

Interaction Occurrence

Choosing Interaction Occurrence adds the interaction occurrence 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.

AutoFix

Together automatically synchronizes changes between the collaboration diagram and class diagram. If problems exist on the collaboration diagram, they will be highlighted on the diagram in red. Use AutoFix to correct these problems. Upon selecting AutoFix, the Solve Problems dialog displays:


The problem will be described in the list on the left side of the dialog. Select the problem from the list that you wish to correct, and use the options listed under the "Available Solutions" list to fix. Click "Apply" and "Finish" to exit the dialog.

AutoLink Labels

The AutoLink Labels command displays a dialog allowing you to link a message with an operation in the target class.

Show as Sequence

Using this command you can convert your collaboration diagram into its corresponding sequence diagram. The resulting sequence diagram displays in the Diagram view.