Opening and Closing Diagrams
Go Up to UML Diagram Procedures
You can open a UML diagram to show it in a separate tab in the Diagram View and close a tab showing a diagram (close the diagram).
To open a diagram
The model tree in the Model View contains nodes corresponding to UML diagrams registered in the modeling project. You can open these diagrams in the Diagram View.
- Open your modeling project in the Model View.
- In the model tree, locate the model element (node) corresponding to the diagram you want to open. Open the diagram in the Diagram View:
- Double-click the desired diagram-type node.
- Right-click the desired diagram-type node and click Open Diagram on the context menu.
- The corresponding diagram opens in the Diagram View.
- The diagram-type model elements (nodes) are:
- The root node of a project (for example, the root node of a Error creating thumbnail: Unable to save thumbnail to destination Delphi project) opens the
defaultdiagram for this project. - A node of a package (namespace) Error creating thumbnail: Unable to save thumbnail to destination opens the class diagram for this package (namespace).
- The node for a class diagram Error creating thumbnail: Unable to save thumbnail to destination of a class, interface, or other container opens the corresponding class diagram.
- Nodes for other types of UML diagrams open corresponding UML diagrams. For example, use case diagrams Error creating thumbnail: Unable to save thumbnail to destination, activity diagrams Error creating thumbnail: Unable to save thumbnail to destination, collaboration diagrams Error creating thumbnail: Unable to save thumbnail to destination, component diagrams Error creating thumbnail: Unable to save thumbnail to destination, and statechart diagrams Error creating thumbnail: Unable to save thumbnail to destination. See the icons used for other types of available UML diagrams in the Diagram View topic.
- The root node of a project (for example, the root node of a Error creating thumbnail: Unable to save thumbnail to destination Delphi project) opens the
To open a diagram containing a node element
The model tree in the Model View contains nodes corresponding to internal elements contained in UML diagrams registered in the modeling project. You can open, in the Diagram View, diagrams containing these elements.
- Open your modeling project in the Model View.
- In the model tree, locate an internal diagram element (node) that you want to see on a diagram.
- Right-click the located element and go to the Select on Diagram context menu item.
- If this element is contained in the single UML diagram, then click Select on Diagram.
The UML diagram containing the selected element opens in the Diagram View. - If this element is contained in several UML diagrams, then the list of the diagrams containing this element opens. Click the desired diagram name.
The specified diagram containing the selected element opens in the Diagram View.
- If this element is contained in the single UML diagram, then click Select on Diagram.
To close a diagram
In the Diagram View, you can close the tab showing the diagram that you do not need to edit anymore.
- In the Diagram View, click the tab of the pane showing the diagram you want to close. The pane gets the focus.
- Click the cross icon on the tab control of the Diagram View to close the current view.
- Note: Closing a diagram in the Diagram View does not remove it from your project.