Navigating among the Model View, Diagram View, and Source Code
Go Up to Locating Diagram Elements
Contents
- 1 To navigate from the Model View to a diagram in the Diagram View
- 2 To navigate from the Model View to an element in the Diagram View
- 3 To navigate from the Diagram View to the Model View
- 4 To navigate from the source code to the Model View
- 5 To navigate from the Model View or Diagram View to the source code
- 6 To navigate from a lifeline to its classifier in the Model View or a Class diagram
- 7 See Also
You can navigate between the Model View, Diagram View, and source code.
- In the Model View, right-click the diagram node.
- On the context menu, choose Open Diagram.
- Alternatively, in the Model View, double-click the diagram node.
- In the Model View, right-click a model element.
- On the context menu, choose Select on Diagram.
- If this model element appears on several diagrams, then the Select on Diagram menu item contains the submenu. On this submenu, choose the required diagram.
- In the Diagram View, right-click an element or the diagram background.
- On the context menu, choose Synchronize Model View.
- In the source code editor, right-click the line containing the desired element.
- On the context menu, choose Synchronize Model View.
- The element becomes highlighted in the Model View.
- In the Model View or in the Diagram View, right-click a model element or a node member.
- On the context menu, choose Go to definition or Go to declaration.
- The code editor opens with the source code of the element in question. The element definition (or declaration) is highlighted.
- This command is available in implementation projects for elements generating some source code.
Tip: To open the source code of an entire class or an interface, double-click the element icon.
- In the Diagram View, right-click the selected lifeline on a UML 2.0 Sequence diagram.
- Choose Select > Type in Model View to navigate to the classifier in the Model View.
- Or choose Select > Type on Diagram to navigate to the classifier on a Class diagram in the Diagram View.