RAD Studio for Microsoft .NET
ContentsIndex
PreviousUpNext
Using the Model View Window and Code Visualization Diagram

Code Visualization allows you view and navigate the logical structure of your application, as opposed to the file-centric view of the Project Manager.

To Display the Model View Window

  1. Start a new project or load an existing one.
  2. Select ViewModel View. The Model View window will open, showing the elements of your project in a tree view.
 

Using the Model View window with Code Visualization diagrams

To... 
...do this 
View or hide nested elements within a UML package, class, or interface  
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 Code Visualization diagram for a .NET namespace, or Delphi unit  
Expand the namespace or unit icon (Code vis namespace icon) and double-click the diagram icon (Model view diagram icon) in the Model View tree.  
View a Code Visualization diagram for the entire project  
Expand the project icon (Model View project icon) in the Model View tree, and double-click the diagram icon.  
Open the source code editor on a specific item in the Model View tree  
Right-click the item and choose Open Source. Note that a .NET namespace can span multiple source files. You cannot open a source file for a namespace directly from the Model View tree.  
Open the Code Visualization diagram on a specific item in the Model View tree  
Right-click the item and choose Show Element on Diagram.  

The Code Visualization diagram has a set of functions that can help you view large models, show or hide attributes, properties, etc., and to move from the graphical depiction on the diagram, directly to the source code for that item.  

Using the Code Visualization diagram  

To... 
...do this 
Rearrange items on the diagram  
Click the item and drag it to a new location.  
View or hide the attributes, operations, properties, and nested types for an item on the diagram  
Click the plus sign (+) next to the category (attributes, operations, etc.) you want to view. Click the minus sign (-) to hide items of a particular category.  
Perform an automatic layout of the items on the diagram  
Right-click anywhere in the Code Visualization diagram window and choose LayoutDo Full Layout, or LayoutOptimize Sizes.  
Print the diagram  
Right-click anywhere in the Code Visualization diagram window and choose Print.  
Open the source code editor on a specific item on the Code Visualization diagram  
Right-click the item, and choose Go to Definition.  
Save the diagram as an image  
Right-click anywhere in the Code Visualization diagram and choose Export to Image.  

Note: With the exception of the Code Visualization Overview, and Using the Overview Window, the links below are only available in the RAD Studio Architect edition.

Code Visualization Overview 

Using the Overview Window 

UML Features in Delphi for .NET 

Integrated Modeling Tools Overview 

Importing and Exporting a Model Using XMI 

Building an ECO Enabled User Interface 

Adding Columns to a Component 

Using the OCL Expression Editor

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!