UML Navigator Context Menus

The UML Navigator has several different context menus, each specific to the resource selected. This section discusses the various context menus for the following resource levels in the UML Navigator:

NB: Depending on your development platform, some of the menu commands described may not be applicable. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Project Level

UML Navigator projects offer the following context menu commands:

Open

Open the project level diagram in Diagram view. It will replace the currently shown diagram with this one.

Open in New Tab

Open the project level diagram in Diagram view in a new tab.

New

Choosing New from the context menu displays a submenu with all basic elements that can be added to the diagram.

New Diagram

Creates a new diagram: Activity, Collaboration, Class, Component, Deployment, State, Use Case, Sequence.

Build Project

Builds the selected project.

Rebuild Project

Rebuilds the selected project.

Refresh from local

Refreshes the selection using your local file structure.

Delete

Deletes the selection. Together prompts for confirmation:

Quality Assurance

Audit

Runs audits against the selection. See Running Audits for details.

Metrics

Runs metrics against the selection. See Running Metrics for details.

Load Metric Results

Loads a previously saved set of metric results. See Saving/Loading Metric Results for details.

Run

Runs your application. A configuration dialog opens if needed. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Debug

Debugs/runs your application. A configuration dialog opens if needed. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Compare With

Use Compare With to compare the resources in the Workbench with the resources held within the repository. The Compare With command offers a submenu with the following options:

Patch

Using a patch allows you to share work with other team members without storing it in a repository. Use the Patch command to access this type of resource.

Each Other

Using the Each Other command simply compares two files. Select two diagrams in the UML Navigator view by using CTRL+Click, then invoke Compare With > Each Other.

Team

Use the Team command to add a project to the repository. Once the project is added, you can create patches, commit, synchronize with repository, etc. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Properties

Displays the properties for the selection in the Properties view.

NB: While the Properties command accessed through the UML Navigator opens the Properties view for the selected resource, you should be aware that this differs from the Properties command accessed through the Navigator and Packages views. The Navigator view Properties command, for instance, opens a project-specific Properties dialog. Among other things, it allows you to turn templates and pattern-recognition on or off per project. These selections override those made in the global Preferences dialogs.

Update

Using the update command will refresh the project.

Package/Diagram Level

Within the UML Navigator at the package level of a project, the context menu displays many of the same commands as at the project level, however, there are some additional options available:

Select on Diagram

Using the Select on Diagram command, you can open the corresponding diagram that the element belongs to in the Diagram view and highlight the element on the diagram.

Show in Packages View

The Show in Packages View command highlights the node selected in the Packages tree-view. The Packages view will expand and highlight that element in the tree-view. If closed, the Packages view will open.

Show in UML Explorer

The Show in UML Explorer command highlights the node selected in the UML Explorer tree-view. The UML Explorer view will expand and highlight that element in the tree-view. If closed, the UML Explorer view will open.

Cut

This action removes the element. You can then choose to Paste the element into the desired location.

Copy

This action copies the selected element. After copying an element, choose to Paste it into a new location.

Clone

The Clone command lets you quickly create a new diagram or element with the same content as the existing one. An element that can be cut/copied and pasted can also be cloned by using the Clone command. Cloning is basically a one-step copy-and-paste. For more information, see Using Clone.

Paste

Using the Paste command, you can paste an element that has been cut or copied.

Paste Shortcut

Pastes a shortcut to the element that has been cut or copied.

Rename

Using Rename dialog renames the element.

Import...

Launches the Import SelectionWizard.

Export...

Launches the Export SelectionWizard.

Hyperlinks

The Hyperlinks command offers a submenu with the following options:

Edit

Using Edit, you can view, add, and remove hyperlinks to a project. For more information on hyperlinks, see Working with Hyperlinks.

<Hyperlink>

<Hyperlink> represents an actual hyperlinked element. In the example shown above, Activity is a hyperlinked element. If there are no hyperlinks for the diagram, then only the Edit option displays.

References

The References command offers a submenu with the following options:

Workspace

By selecting Workspace from the submenu, you can search the entire workbench for references to the element.

Hierarchy

By selecting Hierarchy from the submenu, you can search the Hierarchy view for references to the element.

Working Set

By selecting Working Set from the submenu, the Select Working Sets dialog displays. From this dialog, you can select which working sets to search.

Declarations

The Declarations command offers a submenu with the following options:

Workspace

By selecting Workspace from the submenu, you can search the entire workbench for declarations of the element.

Hierarchy

By selecting Hierarchy from the submenu, you can search the Hierarchy view for references to the element.

Working Set

By selecting Working Set from the submenu, the Select Working Sets dialog displays. From this dialog, you can select which working sets to search.

Layout

The Layout command offers a submenu with the following options:

Layout

Sets the layout of all elements according to the default layout style, which is vertically or horizontally hierarchical.

Layout and optimize

For more information, see Using the Automated Layout Features.

Zoom

There are several ways to obtain the required magnification in the UML Diagram view. The Zoom command offers a submenu with the following options:

In

Using Zoom > In, you can magnify the size of the diagram shown in the Diagram view.

Out

Using Zoom > Out, you can decrease the size of the diagram shown in the Diagram view .

Initial size

You can use Zoom In and Zoom Out options to adjust the size of the diagram shown in Diagram view. To reset the zoom back to the default, select Initial Size. For more information, see Using Zoom.

Hide / Show

Note that individual elements on a diagram can be hidden using the element context menu. If you do not see an element in a diagram, choose Show hidden from the diagram context menu and check the hidden elements list. For more information, see Hiding Elements.

Export to Image

Saves your diagram to an image file. This command opens a dialog in which you can specify a path and name for the image.

Element Level, Class

The context menu for class and interface elements has the following commands:

Select on Diagram

The Select on Diagram command highlights the node selected in the Diagram view. If the diagram is closed, it opens to display the node.

For information on the class level context menu, see Class and Interface Context Menus.

Element Level, Operation

The context menu for an operation has the following commands:

Select on Diagram

The Select on Diagram command highlights the operation selected in the Diagram view. If the diagram is closed, it opens to display the operation.

For information on the operation level context menu, see Operation Context Menu.

Element Level, Link

For information on the link level context menu, see Common Link Context Commands.