Together provides constant synchronization between different aspects of your project:
- Model hierarchy, presented in the Model View
- Model graphical representation in the Diagram View
- Source code (for implementation projects)
Tip: You can also use the Reload function of the Model View
to update an entire model, and the Refresh function of the
Diagram View.
You can navigate between the Model View, Diagram View, and source code by using the following techniques:
- Navigate to a diagram from the Model View to the Diagram View
- Navigate to a model element from the Model View to the Diagram View
- Navigate from the Diagram View to the Model View
- Navigate from a lifeline to its classifier in the Model View or a Class diagram
- Navigate from source code to the Model View
- Navigate from the Model View or Diagram View to source code (for implementation projects)
- Edit a synchronized element
To navigate to a diagram from the Model View to the Diagram View:
- In the Model View, right-click the diagram node.
- Choose Open Diagram.
Alternatively, double-click the diagram node in the
Model View.
To navigate to a model element from the Model View to the Diagram View:
- Select a model element in the Model View.
- Right-click and choose Select on Diagram on the context menu.
Note: If this model element appears on several diagrams, choose a diagram on the submenu.
To navigate from the Diagram View to the Model View:
- Right-click the selected element or diagram background in the Diagram View.
- Choose Synchronize with Model View on the context menu.
To navigate from a lifeline to its classifier in the Model View or a Class diagram:
- Right-click the selected lifeline on a UML 2.0 Sequence diagram in the Diagram View.
- Choose SelectType in Model View to navigate to the classifier in the Model View, Or: Choose SelectType on Diagram to navigate to the classifier on a Class diagram in the Diagram View.
To navigate from source code to the Model View:
- Right-click the line that contains the desired element.
- On the context menu of the selection, choose Synchronize Model View.
Result: The corresponding element is highlighted in the
Model View.
To navigate from the Model View or Diagram View to source code (for implementation projects):
- Right-click a model element or a node member.
- Choose Go to definition on the context menu.
Note: This command is available for source code-generating elements.
Result: Source code of the element in question opens in the Editor tab. The corresponding definition is highlighted.
Tip: To open source code of an entire class or interface, double-click the element icon.
To edit a synchronized element:
- Select an element in the Diagram View or Model View.
- Edit the desired fields in the Object Inspector.
Note: Alternatively, invoke the in-line editor in the Diagram View
or
Model View.
Warning: Avoid using the Structure View
or the Project Manager for modification of the model elements.