Model View

From RAD Studio

Go Up to GUI of Modeling

View > Model View

To open the Model View, use the View > Model View menu command.

Model View is only available for Delphi projects.

Introduction

The Model View shows the model tree of logical structure and containment hierarchy of your modeling project.

The model tree provides the logical representation of the model of your modeling project. The model tree shows the hierarchy of modeling elements in your projects: the root nodes are project nodes, then come nodes of namespaces (packages) and diagrams, then nodes of other modeling elements shown on diagrams.

Double-click a node in the Model View tree to open the Code Editor for a specific class, interface, or member.

Note: Double-clicking a namespace node in the Model View tree cannot open a specific source code file, since namespaces can span multiple source files.

Context menu

The Model View provides the context menu that you can show by right-clicking model tree nodes. Commands available on the context menu depend on the selected modeling element. Using the context menu, you can add new elements to the model directly in the Model View. Some of the actions provided by the context menu are

Icons used in the Model View

This table lists some icons used in the model tree displayed in the Model View:

Icon Represents

Error creating thumbnail: Unable to save thumbnail to destination

UML 1.5 design project

Error creating thumbnail: Unable to save thumbnail to destination

UML 2 design project

Error creating thumbnail: Unable to save thumbnail to destination

Delphi project

Error creating thumbnail: Unable to save thumbnail to destination

Package or namespace

Error creating thumbnail: Unable to save thumbnail to destination

Class diagram. UML 1.5

Error creating thumbnail: Unable to save thumbnail to destination

Class diagram. UML 2

Error creating thumbnail: Unable to save thumbnail to destination

Class

Error creating thumbnail: Unable to save thumbnail to destination

Interface

Error creating thumbnail: Unable to save thumbnail to destination

Association class

Error creating thumbnail: Unable to save thumbnail to destination

Type Definition

Error creating thumbnail: Unable to save thumbnail to destination

Delegate

Error creating thumbnail: Unable to save thumbnail to destination

A property of a class

Error creating thumbnail: Unable to save thumbnail to destination

Object. -- Element of class, deployment, collaboration, activity, and statechart diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Constraint -- Element of class diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Note

Error creating thumbnail: Unable to save thumbnail to destination

Attribute

Error creating thumbnail: Unable to save thumbnail to destination

Operation

Error creating thumbnail: Unable to save thumbnail to destination

Data type

Error creating thumbnail: Unable to save thumbnail to destination

Structure

Error creating thumbnail: Unable to save thumbnail to destination

Union

Error creating thumbnail: Unable to save thumbnail to destination

Enumeration

Error creating thumbnail: Unable to save thumbnail to destination

Enumeration; UML 2

Error creating thumbnail: Unable to save thumbnail to destination

Enumeration value

Error creating thumbnail: Unable to save thumbnail to destination

Instance specification

Error creating thumbnail: Unable to save thumbnail to destination

Instance specification slot

Error creating thumbnail: Unable to save thumbnail to destination

Part

Error creating thumbnail: Unable to save thumbnail to destination

Port

Error creating thumbnail: Unable to save thumbnail to destination

Activity diagram; UML 1.5

Error creating thumbnail: Unable to save thumbnail to destination

Activity diagram; UML 2

Error creating thumbnail: Unable to save thumbnail to destination

Activity -- Element of activity diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Decision -- Element of activity diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Signal receipt -- Element of activity diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Signal sending -- Element of activity diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Swimlane -- Element of activity diagrams

Error creating thumbnail: Unable to save thumbnail to destination

End state -- Element of activity and statechart diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Horizontal synchronization bar (fork/join) -- Element of activity and statechart diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Start state -- Element of activity and statechart diagrams

Error creating thumbnail: Unable to save thumbnail to destination

State -- Element of activity and statechart diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Vertical synchronization bar -- Element of activity and statechart diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Collaboration diagram; UML 1.5

Error creating thumbnail: Unable to save thumbnail to destination

Communication diagram; UML 2

Error creating thumbnail: Unable to save thumbnail to destination

Interaction -- Element of communication diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Component diagram; UML 1.5

Error creating thumbnail: Unable to save thumbnail to destination

Component diagram; UML 2

Error creating thumbnail: Unable to save thumbnail to destination

Subsystem -- Element of component diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Component -- Element of component diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Interface -- Element of component diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Composite structure diagram; UML 2

Error creating thumbnail: Unable to save thumbnail to destination

Collaboration -- Element of composite structure diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Collaboration occurrence -- Element of composite structure diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Deployment diagram; UML 1.5

Error creating thumbnail: Unable to save thumbnail to destination

Deployment diagram; UML 2

Error creating thumbnail: Unable to save thumbnail to destination

Node -- Element of deployment diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Sequence diagram; UML 1.5

Error creating thumbnail: Unable to save thumbnail to destination

Sequence diagram; UML 2

Error creating thumbnail: Unable to save thumbnail to destination

Lifeline -- Element of sequence diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Lifeline execution specification -- Element of sequence diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Statechart diagram; UML 1.5

Error creating thumbnail: Unable to save thumbnail to destination

State machine diagram; UML 2

Error creating thumbnail: Unable to save thumbnail to destination

State machine -- Element of state machine diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Region -- Element of state machine diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Entry point -- Element of state machine diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Exit point -- Element of state machine diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Use case diagram

Error creating thumbnail: Unable to save thumbnail to destination

Actor -- Element of use case diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Use case -- Element of use case diagrams

Error creating thumbnail: Unable to save thumbnail to destination

Subject (or System boundary) -- Element of use case diagrams

Customizing the Model View

You can use the Model View options page of the Options dialog box to customize how the Model View renders the model tree.

To open the Options dialog box, choose the Tools > Options menu command, and to open the Model View options page select the Modeling > (level) > Model View node in the options tree.


The Model View options page provides the following options:

  • Show links -- By default (False), the model tree does not display links between diagram nodes. You can select True to show the links to make the visual presentation of the project in the model tree more detailed.
  • Sorting type -- By default, diagram nodes are sorted by metaclass. You can define to sort elements by Metaclass, Alphabetically, or None (do not sort).
  • View type -- By default, the model tree uses the Simplified organization of nodes. For the sake of better presentation, you can opt to show your model in Diagram-centric or in Model-centric modes. The Diagram-centric mode assumes that the design elements are shown under their respective diagrams; the namespaces only contain classes and interfaces (and the source-code elements for implementation projects). The Model-centric mode assumes that all elements are shown under the namespaces.


Commands

The Refresh Model View and Reload commands can be used to refresh the model tree.

Refresh Model View

The Error creating thumbnail: Unable to save thumbnail to destination Refresh Model View button updates the model tree in the Model View to show possible changes in the implementation project's source code.

Reload

The Reload command refreshes the Modeling model tree from the source code of the implementation project.

The Reload command is available on the context menu of the project root nodes in the model tree. It is available for implementation projects only.

This command provides a total refresh for the elements of the model tree and removes invalid elements from the model. Using this command has the same effect as reopening the project group, but avoids the overhead of reinitializing RAD Studio.


See Also