Pop-Up Menus: Diagram Editor

See Also

Certain functions become available when you right-click parts of the Diagram editor or elements displayed there. Contextual menus are available in the Diagram editor when you do the following:

Right-Clicking Diagram Editor Background

The following table describes the functions that appear on the pop-up menu when you click the background of the Diagram editor:

Pop-Up Menu Item Description
Edit Lets you paste any cut or copied diagram element, and lets you select all elements in the diagram for further cutting, copying, deleting, and so on.
Layout Lets you modify the layout for your diagram.
Zoom In Lets you zoom in to the diagram.
Zoom Out Lets you zoom out of the diagram.
Zoom Lets you set the custom zoom level for the diagram.
Synchronize Element with Data Lets you synchronize the elements in the diagram with the data stored in their data files.
Associate With Lets you associate two elements in a diagram.
Apply Design Pattern Opens the Design Pattern Apply Wizard.
Select in Model Locates and highlights the diagram in the Projects window .
Properties Opens the Display and Drawing Preferences dialog box, which lets you customize the way your diagrams appear.

When you right-click individual elements and links in the Diagram editor, the IDE displays different pop-up menus.

Right-Clicking Elements of Diagrams

The following table describes the functions that are enabled when you right-click an individual diagram element in the Diagram editor:

Pop-Up Menu Item Description
Edit Lets you Copy, Cut, Delete, and Paste the element. Also, lets you Select all or Select all similar elements.
Transform Transforms the element into one of two different types of elements.
Compartment Opens the Compartment Customize dialog box, which lets you show and hide selected compartments of a class. This option is only available for class elements and for interfaces (when the interface is not displayed as an icon).
Reset Edges Brings the element back to its default location in the Diagram editor.
Resize Element to Contents Resizes the element so you can see all its attributes and operations from left to right.
Synchronize Element with Data Lets you synchronize the element in the active diagram with its associated data file.
Hide Lets you hide parent and children elements (objects) for the element.
Show Lets you show hidden parent and child elements (objects) for the element.
name_of_selected_element Lets you edit the font, font color, background color and the border color of the element.
Select in Model Locates and highlights the element in the Projects window.
Insert Attribute or Operation
(available for classes and interfaces)
Lets you create a new attribute or a new operation for the class or interface.
Delete Attribute or Operation
(available for classes and interfaces)
Lets you delete an attribute or operation from the class or interface.
Interaction Operator
(available for combined fragments)
Lets you specify an interaction operator for any combined fragment in a Sequence diagram.
Interaction Operand
(available for combined fragments)
Lets you create a new (or edit an existing) interaction constraint, insert a new interaction operand box above the currently selected box, add a new interaction operand box at the bottom of all boxes in the combined fragment, or delete the currently selected interaction operand box for any combined fragment in a Sequence diagram.
Properties Opens the Display and Drawing Preferences dialog box, which lets you customize diagram parameters.
Associate With The Associate dialog box lets you associate any element with any other element.
Generate Dependency Diagram Lets you create a diagram showing all the dependencies for a Classifier. UML Modeling depicts the following types of relationships on the new diagram: Generalizations, Associations, Implementations, and Operations with parameters of a given class type.
Generate Code Lets you quickly generate source code for classes and interfaces in your diagram.
Redefine Operations Redefines (overrides) operations from a parent class to a child class. A dialog box opens listing the operations to redefine.
Apply Design Pattern Opens the Design Pattern Apply Wizard.

Right-Clicking Elements in Sequence Diagram Headers

The following table describes the functions that become available when you right-click the space between objects displayed in the header of a Sequence diagram:

Pop-Up Menu Item Description
Navigate to Instance Lets you navigate the diagram by centering the Diagram editor on the target object, its incoming object, or its outgoing object.
Navigate to Classifier Lets you navigate the diagram by centering the Diagram editor on the target classifier in its corresponding Class diagram.
No Width Restrictions Lets you clear any spacing restriction on the space between any two adjacent lifelines.
Retain This Minimum Width Lets you specify the minimum width spacing restriction on the space between any two adjacent lifelines.
Set Width to Message Width Lets you specify the auto-expand spacing restriction on the space between any two adjacent lifelines, based on the width of messages.
Show Indicators in Track Bar Lets you show or hide spacing restriction indicators in the gray header bar.

Right-Clicking Links in Diagrams

The following table describes the functions that are enabled when you right-click a link in a diagram.

Pop-Up Menu Item Description
Edit Lets you Copy, Cut, Delete, and Paste the link. Also, lets you Select all or Select all similar links.
Transform Lets you convert association lines to aggregations, and aggregation lines to associations.
Find Locates and highlights the elements in the Projects window. Also, locates source and target nodes.
Labels Resets all labels to their default locations in the Diagram editor.
Synchronize Element with Data Lets you synchronize the link in the active diagram with its associated data file.
Association Opens a Color dialog box allowing you to change the border color of the link.
Associate With The Associate dialog box lets you associate any element with any other element.
Generate Dependency Diagram Lets you create a diagram showing all the dependencies for a Classifier. UML Modeling depicts the following types of relationships on the new diagram: Generalizations, Associations, Implementations, and Operations with parameters of a given class type.
Apply Design Pattern Opens the Design Pattern Apply Wizard.
Properties Opens the Display and Drawing Preferences dialog box, which lets you customize diagram parameters.
See Also
Navigation: UML Modeling

Legal Notices