Elements

All of the UML diagram elements share common context menu commands. To use the context menu for an element, simply right click on the element in the Diagram view. To view the common context menu commands, see Common Element Context Commands.

You can model activity diagrams using either UML 1.4 or UML 2.0 features.

UML 1.4

The context menus described in this section are specific to UML 1.4 activity diagram elements.

Activity

The activity element offers a special context command named New with a submenu for adding a deferred event and an internal transition:

Deferred Event

Creates a deferred event within the activity element.

Internal Transition

Creates an internal transition event within the activity element.

Decision and Signal Sending/Receipt

For more information, see Common Element Context Commands.

State

The state element offers a special context command named New with a submenu for adding the following elements and events:

Vertical Fork/Join

Choosing this command adds a vertical fork/join element to the state element.

Horizontal Fork/Join

Choosing this command adds a horizontal fork/join element to the state element.

History

Choosing this command adds a history element to the state element.

Deferred Event

Creates a deferred event within the state element. For more information, see Creating Deferred Events.

Internal Transition

Creates an internal transition event within the state element. For more information, see Creating Internal Transitions.

Object

The object element offers the following additional context menu selections:

New

The object element has a special context command named, New, with a submenu for creating a new class or interface:

Class

Selecting New > Class from the context menu displays the New Object's Class dialog allowing you to create a new class:

Interface

Selecting New > Interface from the context menu displays the New Object's Interface dialog allowing you to create a new interface:

Select Class

The object element also offers special context commands named Select Class and Unlink Class.

Select Class expands to display a submenu that shows any classes that are "local" to the diagram and an option named, More, for browsing available classes that you wish to associate with the object.

Local Class List (Class1, Class2)

If there are classes that are "local" to the diagram, then they will display in this list. Select the class from the list to associate it with the object.

More

Select More to open a file browsing dialog to select a class to associate with an object.

Show Class

Once a class or interface has been associated with an object, the Show Class command is enabled. This command offers special context commands named, In Editor, In Resource Navigator, In Package Explorer, and In Model Navigator.

In Editor

Opens the source file in the Editor window.

In Navigator

Opens the Navigator view, navigates to and highlights the source file in the view.

In Package Explorer

Opens the Package Explorer view, navigates to and highlights the source file in the view.

In UML Navigator

Opens the UML Navigator view, navigates to and highlights the source file in the view.

Unlink Class

Use Unlink Class to unlink a previously linked class or interface from an object.

Swimlane

The swimlane element offers a special context command named New with a submenu for adding the following elements:

Activity

Choosing this command adds an activity element within the swimlane element.

Decision

Choosing this command adds a decision element within the swimlane element.

Signal Receipt

Choosing this command adds a signal receipt element within the swimlane element.

Signal Sending

Choosing this command adds a signal sending element within the swimlane element.

State

Choosing this command adds a state element within the swimlane element.

Object

Choosing this command adds an object element within the swimlane element.

Start State

Choosing this command adds a start state element within the swimlane element.

End State

Choosing this command adds an end state element within the swimlane element.

State

Choosing this command adds a state element within the swimlane element.

Vertical Fork/Join

Choosing this command adds a vertical fork/join element within the swimlane element.

Horizontal Fork/Join

Choosing this command adds a horizontal fork/join element within the swimlane element.

Start/End States and History

For more information, see Common Element Context Commands.

Horizontal and Vertical Fork/Join

For more information, see Common Element Context Commands.

UML 2.0

The context menus described in this section are specific to UML 2.0 activity diagram elements.

Activity Invocation

The activity invocation element offers a special context command named New with a submenu for adding a deferred event and an internal transition:

Deferred Event

Creates a deferred event within the activity invocation element.

Internal Transition

Creates an internal transition event within the activity invocation element.

Activity Partition

The activity partition element offers a special context command named New with a submenu for adding the following elements:

Activity Invocation

Choosing this command adds an activity invocation element within the activity partition.

Decision

Choosing this command adds a decision element within the activity partition.

State

Choosing this command adds a state element within the activity partition.

Object

Choosing this command adds an object element within the activity partition.

Initial Node

Choosing this command adds an initial node element within the activity partition.

Activity Final

Choosing this command adds an activity final element within the activity partition.

Vertical Fork/Join

Choosing this command adds a vertical fork/join element within the activity partition.

Horizontal Fork/Join

Choosing this command adds a horizontal fork/join element within the activity partition.

Flow Final

Choosing this command adds a flow final element within the activity partition.

Interruptible Activity Region

Choosing this command adds an interruptible activity region within the activity partition.

Iteration Activity Group

Choosing this command adds an iteration activity group within the activity partition.

Initial Node

For more information, see Common Element Context Commands.

Activity Final

For more information, see Common Element Context Commands.

Flow Final

For more information, see Common Element Context Commands.

Interruptible Activity Region

For more information, see Common Element Context Commands.

Iteration Activity Group

For more information, see Common Element Context Commands.