RAD Studio (Common)
ContentsIndex
PreviousUpNext
Model View

ViewModel View 

The Model View provides the logical representation of the model of your project: namespaces (packages) and diagram nodes. Using this view, you can add new elements to the model; cut, copy, paste and delete elements, and more. Context menu commands of the Model View are specific to each node. Explore these commands as you encounter them. 

In the Model View, only the nodes and their respective subnodes shown in the Diagram View are listed under the corresponding diagram node. For example, if you have a namespace (package) containing a class, both the namespace (package) and class are shown under the diagram node in the Model View. However, any members of the class are not shown under the diagram node as they are displayed under the namespace (package) node only. 

Although the Model View opens initially as a free-floating window, it is a dockable window. The docking areas are any of the four borders of the RAD Studio window. You can position the Model View window according to your preferences. 

The following options are applicable to the Model View:

  • In the Show diagram nodes expandable field (OptionsModelingModel View) choose True to show, or False to hide expandable diagram nodes. By default, the Model View displays expandable diagram nodes with the elements contained therein. You can hide expandable diagram nodes to further simplify the visual presentation of the project.
  • In the Show links field (OptionsModelingModel View) choose True to show, or False to hide expandable diagram nodes. By default, the Model View does not display links between nodes. You can opt to show the links to make the visual presentation of the project more detailed.
  • In the Sorting type field ( OptionsModelingModel View) choose Metaclass, Alphabetical, or None to sort elements in the Model View. By default, diagram nodes are sorted by metaclass. You can sort elements in the Model View by metaclass, alphabetically, or none.
  • In the View type field (OptionsModelingModel View) choose Diagram-centric or Model-centic from the list box. For the sake of better presentation you can opt to show your model in diagram-centric or in model-centric modes. The Diagram-centic 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.
 

 

Item 
Description 
Root project node 
The topmost item of a project structure.  
Nodes 
Namespaces (packages), diagrams, then model elements of the current model.  
Refresh Model View button 
Updates the model structure in the Model View to show possible changes in source code.  

This command is available for implementation projects only. 

You can use the Reload command (available at the root project node) to refresh the Modeling model from the source code. This command provides a total refresh for the elements and removes invalid code elements from the model. Using this command has the same effect as reopening the project group, but avoids the overhead of reinitializing RAD Studio.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!