Opening and Closing Diagrams

From RAD Studio
Jump to: navigation, search

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.

  1. Open your modeling project in the Model View.
  2. 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 Model tree Delphi project node Delphi project) opens the default diagram for this project.
  • A node of a package (namespace) Namespace icon opens the class diagram for this package (namespace).
  • The node for a class diagram Class diagram icon 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 UseCaseDiagram, activity diagrams Activity Diagram, collaboration diagrams Collaboration Diagram, component diagrams Component Diagram, and statechart diagrams StatechartDiagram. See the icons used for other types of available UML diagrams in the Diagram View topic.

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.

  1. Open your modeling project in the Model View.
  2. In the model tree, locate an internal diagram element (node) that you want to see on a diagram.
  3. 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.

To close a diagram

In the Diagram View, you can close the tab showing the diagram that you do not need to edit anymore.

  1. In the Diagram View, click the tab of the pane showing the diagram you want to close. The pane gets the focus.
  2. 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.

See Also