Package Context Menu

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.

The context menu for a package element residing on a diagram differs slightly from the package diagram context menu. It includes the Open, Open in New Tab, and New Diagram commands. The package context menu shares the common context menu commands as well as commands specific to it:

Open

When selecting a package element on a diagram, you can open the package diagram in Diagram view by using the Open command. Using the Open command will replace the currently opened diagram with the newly opened diagram. This command resides on the context menu for package elements on diagrams.

Open in New Tab

When selecting a package element on a diagram, you can open the package diagram in Diagram view by using the Open in New Tab command. Using the Open in New Tab command will keep the current diagram open, while the newly opened diagram opens in its own tabbed page in the Diagram view. This command resides on the context menu for package elements on diagrams.

New

The New command for the package element offers a submenu with the following options:

Class

Selecting Class from the submenu adds a class element to the diagram.

Interface

Selecting Interface from the submenu adds an interface element to the diagram.

Package

Selecting Package from the submenu adds a package element to the diagram.

Object

Selecting Object from the submenu adds an object element to the diagram.

Class by Pattern

Selecting Class by Pattern launches the Apply Pattern dialog displaying the available patterns. Make a selection from the Pattern list to apply a pattern.

Note

Selecting Note from the submenu 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.

New Diagram

The New Diagram command for the package element offers a submenu allowing you to create new diagrams. The new diagrams are created in the current package.

Generate Class Diagram

The Generate Class Diagram command creates an exact copy of the package diagram as a new class 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 View

The Show in UML Explorer View 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, this view will open.

Quality Assurance

The Quality Assurance command for the class diagram offers a submenu with the following options:

Audit

Selecting Audit from the submenu processes audits for only the specific diagram. For more information, see Running Audits.

Metrics

Selecting Metrics from the submenu processes metrics for only the specific diagram. For more information, see Running Metrics.

Load Metric Results

Once you've run metrics on a project or part of a project, you can save those metric results and view them whenever you like. Use this command to load a set of metrics results. For more information, see Saving/Loading Metrics Results.