RAD Studio (Common)
Working with a Referenced Project

Your project can have a binary library whose content you may want to display in your diagrams. For example, you can show entities that reside in the MSCorLib.dll or other project references. Such resources exist for the project, but UML modeling does not include them in the generated HTML documentation for the project. 

The Model View enables you to view class diagrams for references included in your projects. You can add references to your project using the Project Manager.

To add a project to references:

  1. In the Project Manager, expand the desired project node.
  2. Right-click the Requires node, and choose Add Reference. from the context menu.
    Tip: Alternatively, choose Project->Add to Project
    , and then click the Requires tab on the Add dialog box.
  3. In the Projects tab, select the projects to be referenced and click Select.
  4. Click OK when ready.
Result: The Choose Type to Instantiate dialog box shows all referenced projects, making it possible to choose the desired classifiers from the different projects.

To view a diagram of a referenced project:

  1. Open or create a class diagram.
  2. Right-click the diagram background and choose AddShortcuts. The Edit Shortcuts dialog box opens and displays the content available for the diagram and all content residing outside of the current namespace.
  3. Choose the resource that you want to add from the tree view of available contents on the left of the dialog and click Add >>.
  4. Repeat until you have added all of the resources that you want to show on the diagram.
  5. Click OK to close the dialog box.
Tip: If the Edit Shortcuts
dialog box does not show the resource that you are looking for, it is probably not added as a reference to your project. Choose ProjectAdd Reference on the main menu to add a project reference.

To view the MsCorLib.dll (a standard DLL added automatically to your projects):

  1. Expand the References node and the MsCorLib.dll node in the Model View.
  2. Right-click the default diagram and choose Open Diagram. The default diagram opens in the Diagram View. You can expand the Microsoft and System folders to view other class diagrams as well.

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