The context menus of the various elements provide functions specific to each element. For example, you can add or delete members from a class, cut-copy-paste, hide and show elements, and more. Explore the context menus of the different elements as you encounter them to see the commands available for each one.
However, for the most part, all of the UML elements do share common context menu commands. To use the context menu for an element, simply right click on the element in the Diagram view.
Each element has the following common context menu commands:
The Select in Model Tree command highlights the node selected in the UML Navigator tree-view. The UML Navigator will expand and highlight that element in the tree-view. If closed, the UML Navigator will open. For more information, see Using Select in Model Tree.
One of the usual edit operations. This action deletes the source element from the current Diagram view. You can then choose to Paste the element into the desired location.
One of the usual edit operations. This action copies the selected element. After copying an element, choose to Paste it into a new location.
The Clone command lets you quickly create a new 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.
One of the usual edit operations. Using the Paste command, you can paste an element that has been cut or copied.
Use this command to paste a copied diagram element as a short cut on another diagram.
The Rename dialog renames the element and refactors the change throughout the project.
The Delete command will delete the element from the project. A Confirmation dialog opens to confirm the deletion.
The Hyperlinks command offers a submenu for managing and viewing hyperlinks:
Using Edit, you can view, add, and remove hyperlinks to a project. For more information on hyperlinks, see Working with Hyperlinks.
<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.
Use the Print command to print a single diagram element. Use CTRL + Click to select multiple diagram elements for printing. For more information, see Printing Diagrams, Diagram Elements, and Source Code.
Use this command to resize an element to its default size. For elements that contain subelements, the default size will respect the position of the subelements and remain large enough to show them.
Individual elements can be hidden in diagrams using the Hide command. If you do not see an element in a diagram, choose Hide / Show from the Diagram context menu and check the hidden elements list.
Using the Properties command opens the Properties view for the current element. For more information, see Using the Properties View.