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:
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 |
---|---|
Select all | Selects all the elements in a diagram. |
Show/Hide List Compartments | Lets you show/hide list compartments, expanding or contracting all. |
Paste | Provides paste functionality. |
Apply Design Pattern | Opens the Design Pattern Apply Wizard. |
Select in Model | Locates and highlights the diagram in the Projects window . |
Properties | Opens the Properties for this Diagram. |
When you right-click individual elements and links in the Diagram editor, the IDE displays different pop-up menus.
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 |
---|---|
Select All | Select all parts of elements in a diagram. |
Invert Selection | Lets you invert an element or elements you have selected in a diagram. |
Select All Similar Elements | Lets you select elements that have something in common. |
Create Attribute | Lets you create a new attribute for the class or interface.
|
Create Operation | Lets you create a new operation. |
Redefine Operations | Redefines (overrides) operations from a parent class to a child class. A dialog box opens listing the operations to redefine. |
Resize Element to Contents | Resizes the element so you can see all its attributes and operations from left to right. |
Set Dimension | Opens a Set Dimension dialog that enables you to set the dimensions of an element. |
Synchronize Element with Data |
Lets you synchronize the element in the active diagram with its associated data file. |
Show/Hide List Compartments | Lets you show/hide hidden parent and child elements (objects) for the element.
|
Fonts and Colors | Lets you edit the font, font color, background color and the border color of the element. |
Apply Design Pattern | Opens the Design Pattern Apply Wizard. |
Generate Code | Lets you quickly generate source code for classes and interfaces in your diagram. . |
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. |
Navigate to Source | Lets you navigate from a specific location on the diagram to the source corresponding to that diagram. |
Cut | Cuts an element and places it on the clipboard for pasting to the diagram, to another diagram, or to third party applications. |
Copy | Copies an element for placement elsewhere in the diagram or another diagram. |
Delete | Deletes elements from a diagram, prompting you if you want to delete them from a model. |
Select in Model | Lets you select the corresponding source in the Project Tree. |
The following table describes the functions that become available when you right-click the background of the Sequence diagram.
Pop-Up Menu Item | Description |
---|---|
Select All | Select all parts of an element such as a Lifeline. |
Show All Return Messages | Shows optional return messages. |
Show Message Boundaries | Shows the boundary of an element is where the output of one element becomes the input of another, |
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. |
The following table describes the functions that are enabled when you right-click a link in a diagram.
Pop-Up Menu Item | Description |
---|---|
Select All | Lets you select all links. |
Invert Selection | Inverts the selection. |
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. |
Fonts and Colors | Lets you change fonts and allows you to change the background and foreground colors of a link. |
Labels | Lets you choose a name for a label or to reset labels. |
Remove All Bends | Lets you remove bends from link. |
Find | Lets you find a Source or Target element. |
Apply Design Pattern | Opens the Design Pattern Apply Wizard. |
Cut | Cuts the link and places it on the clipboard for placement elsewhere in the diagram or in another diagram. |
Copy | Copies the link to the clipboard for placement elsewhere in the diagram or in another diagram. |
Delete | Deletes the link. |
Properties | Opens the Display and Drawing Preferences dialog box, which lets you customize diagram parameters. |