RAD Studio (Common)
ContentsIndex
PreviousUpNext
Synchronizing the Model View, Diagram View, and Source Code

UML modeling provides constant synchronization between different aspects of your project:

  • Model hierarchy, presented in the Model View
  • Model graphical representation in the Diagram View
  • Source code (for implementation projects)
Tip: You can also use the Reload function of the Model View
to update an entire model, and the Refresh function of the Diagram View.

You can navigate between the Model View, Diagram View, and source code by using the following techniques:

  1. Navigate to a diagram from the Model View to the Diagram View
  2. Navigate to a model element from the Model View to the Diagram View
  3. Navigate from the Diagram View to the Model View
  4. Navigate from a lifeline to its classifier in the Model View or a Class diagram
  5. Navigate from source code to the Model View
  6. Navigate from the Model View or Diagram View to source code (for implementation projects)
  7. Edit a synchronized element

To navigate to a diagram from the Model View to the Diagram View:

  1. In the Model View, right-click the diagram node.
  2. Choose Open Diagram.
Alternatively, double-click the diagram node in the Model View.

To navigate to a model element from the Model View to the Diagram View:

  1. Select a model element in the Model View.
  2. Right-click and choose Select on Diagram on the context menu.
    Note: If this model element appears on several diagrams, choose a diagram on the submenu.

To navigate from the Diagram View to the Model View:

  1. Right-click the selected element or diagram background in the Diagram View.
  2. Choose Synchronize with Model View on the context menu.

To navigate from a lifeline to its classifier in the Model View or a Class diagram:

  1. Right-click the selected lifeline on a UML 2.0 Sequence diagram in the Diagram View.
  2. Choose SelectType in Model View to navigate to the classifier in the Model View, Or: Choose SelectType on Diagram to navigate to the classifier on a Class diagram in the Diagram View.

To navigate from source code to the Model View:

  1. Right-click the line that contains the desired element.
  2. On the context menu of the selection, choose Synchronize Model View.
Result: The corresponding element is highlighted in the Model View.

To navigate from the Model View or Diagram View to source code (for implementation projects):

  1. Right-click a model element or a node member.
  2. Choose Go to definition on the context menu.
Note: This command is available for source code-generating elements.
Result: Source code of the element in question opens in the Editor tab. The corresponding definition is highlighted.
Tip: To open source code of an entire class or interface, double-click the element icon.

To edit a synchronized element:

  1. Select an element in the Diagram View or Model View.
  2. Edit the desired fields in the Object Inspector.
Note: Alternatively, invoke the in-line editor in the Diagram View or Model View.
Warning: Avoid using the Structure View
or the Project Manager for modification of the model elements.

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