Go Up to Modeling Procedures
The Model View and Diagram View allow you to view and navigate the logical structure of your projects supporting Modeling, as opposed to the file-centric view of the Project Manager.
Using the Model View
The Model View shows the model tree of the logical structure and containment hierarchy of your modeling project.
Model View features
To...
|
...do this
|
Display the Model View
|
Select View > Model View. The Model View opens, showing the model tree of projects (in the current project group) supporting UML modeling.
|
View the default diagram for a project
|
On the modeling tree, double-click the root node of a project (for example, the Delphi project node). The default diagram for this project opens in the Diagram View.
|
Show or hide in the model tree nested elements within a UML package, class, interface, and other nodes
|
On the model tree, click the plus sign (+) next to the element's icon to view nested items, or click the minus sign (-) to hide nested items.
|
View a UML diagram for a package (namespace)
|
On the model tree, double-click a ( ) package (namespace) node. The diagram for this package (namespace) opens in the Diagram View.
|
View a diagram for a class, interface, or other container
|
On the model tree, double-click a ( ) node for the diagram of a class, interface, or other container. The selected diagram opens in the Diagram View.
|
Open the Code Editor on a modeling element specified in the model tree
|
In the model tree, right-click the item and choose Open Source on the context menu. The Code Editor opens and is positioned on the source code of the selected item declaration (in implementation projects).
If the node does not have a corresponding diagram, then double-clicking the node opens the Code Editor with the source code of this element declaration (in implementation projects).
|
Use the Open Diagram, Go to Declaration, and Select on Diagram context menu commands
|
In the Model View tree, right-click the item and choose:
- Open Diagram on the context menu—the diagram of the selected item opens in the Diagram View.
- Go to Declaration—the Code Editor opens and is positioned on the source code of the selected item declaration.
- Select on Diagram—the diagram containing the item opens.
|
Using the Diagram View
The Diagram View shows diagrams that help you view large UML models and move from the graphical modeling elements on diagrams directly to the source code for these elements. In the Diagram View you can show or hide classes, attributes, properties, and so on.
Diagram View features
To...
|
...do this
|
Display the Diagram View
|
To open the Diagram View, in the Model View, right-click a diagram, namespace, or package node on the model tree and choose Open Diagram on the context menu (or double-click the node). The Diagram View opens, showing the UML diagram for the specified node.
|
Rearrange elements on diagrams
|
Click an element and drag it to a new location.
|
Show or hide attributes, operations, properties, and nested types for an element on a diagram
|
Click the plus sign (+) next to the compartment (Attributes , Operations , and others) members of which you want to view. Click the minus sign (-) to hide members in a particular compartment.
|
Perform an automatic layout of items on a diagram
|
Right-click anywhere in the diagram and choose Layout > Do Full Layout, Layout > Optimize Sizes or other layout commands on the context menu.
|
Open the Code Editor for a specific element on a diagram
|
Double-click an element (or right-click the element and choose Go to Declaration on the context menu). The Code Editor opens and is positioned on the source code of the element declaration.
|
Scroll a diagram using the Overview pane
|
Large models do not fit within the Diagram View; to view such diagrams, you can use the Overview pane.
|
See Also