Go Up to Modeling Concepts
A shortcut is a representation of an existing node element placed on the same or a different diagram.
Shortcuts facilitate reuse of elements, make it possible to display library classes on diagrams, and demonstrate relationships between the diagrams within the UML model.
You can create the following shortcuts:
- A shortcut to an element of any project in the current project group
- A shortcut to an inner class or interface of another classifier
- A shortcut to an element from project References, including binary (
A small special symbol appears over a node to indicate a shortcut. It appears only if this node belongs to a different namespace or package.
Select a shortcut on your diagram and choose Navigate To Element on the context menu to navigate to the source element in the Model View.
For implementation projects, the Diagram View provides the Adding shortcuts to ancestor classes feature. The class name section of a class element shows the name of the parent class, if the parent class exists and is not shown in the diagram as the class generalization. If the class name section of a class element shows the name of the parent class, clicking the parent class name opens the context menu containing two commands:
- Add to Diagram -- This command adds the shortcut to the parent class on the diagram and shows the generalization link from the class to the parent class.
- Add to Diagram with Ancestors -- This command adds the shortcuts to the parent class and to all its ancestors and shows the generalization links from the class to the parent class and to all ancestors.