Model View

From RAD Studio
Jump to: navigation, search

Go Up to GUI of Modeling

Go Up to Tool Windows Index


View > Tool Windows > 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

Project Icon

UML 1.5 design project

Project Icon

UML 2 design project

Project Icon

Delphi project

Package/namespace icon

Package or namespace

Class diagram

Class diagram. UML 1.5

Class diagram UML 2

Class diagram. UML 2

Class icon

Class

Interface icon

Interface

Association Class

Association class

TypeDefinition

Type Definition

Delegate

Delegate

Property icon

A property of a class

Object

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

Constraint

Constraint -- Element of class diagrams

Note

Note

Attribute

Attribute

Operation

Operation

DataType

Data type

Structure

Structure

Union

Union

Enumeration

Enumeration

Enumeration

Enumeration; UML 2

EnumerationValue

Enumeration value

InstanceSpecification

Instance specification

Instance Specification Slot

Instance specification slot

Part

Part

Port

Port

Activity Diagram

Activity diagram; UML 1.5

UML 2 Activity Diagram

Activity diagram; UML 2

Activity

Activity -- Element of activity diagrams

Decision

Decision -- Element of activity diagrams

SignalReceipt

Signal receipt -- Element of activity diagrams

SignalSending

Signal sending -- Element of activity diagrams

Swimlane

Swimlane -- Element of activity diagrams

End State

End state -- Element of activity and statechart diagrams

Horizontal Synchronization Bar

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

Start State

Start state -- Element of activity and statechart diagrams

State

State -- Element of activity and statechart diagrams

Vertical Synchronization Bar

Vertical synchronization bar -- Element of activity and statechart diagrams

Collaboration Diagram

Collaboration diagram; UML 1.5

CommunicationDiagram

Communication diagram; UML 2

Interaction

Interaction -- Element of communication diagrams

Component Diagram

Component diagram; UML 1.5

UML 2 Component Diagram

Component diagram; UML 2

Subsystem

Subsystem -- Element of component diagrams

Component

Component -- Element of component diagrams

Interface

Interface -- Element of component diagrams

CompositeStructureDiagram

Composite structure diagram; UML 2

Collaboration

Collaboration -- Element of composite structure diagrams

CollaborationOccurrence

Collaboration occurrence -- Element of composite structure diagrams

Deployment Diagram

Deployment diagram; UML 1.5

UML 2 Deployment Diagram

Deployment diagram; UML 2

Node

Node -- Element of deployment diagrams

Sequence Diagram

Sequence diagram; UML 1.5

UML 2 Sequence Diagram

Sequence diagram; UML 2

Lifeline

Lifeline -- Element of sequence diagrams

Lifeline_ExecutionSpecification

Lifeline execution specification -- Element of sequence diagrams

StatechartDiagram

Statechart diagram; UML 1.5

StateMachineDiagram

State machine diagram; UML 2

State Machine

State machine -- Element of state machine diagrams

Region

Region -- Element of state machine diagrams

EntryPoint

Entry point -- Element of state machine diagrams

ExitPoint

Exit point -- Element of state machine diagrams

UseCaseDiagram

Use case diagram

Actor

Actor -- Element of use case diagrams

Use Case

Use case -- Element of use case diagrams

System Boundary

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 Refresh Model View Icon 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