Mirror Referenced Project's Model Element

Project dependence is a feature enables us to reference model elements in external project, and uses its model element in our own project. This tutorial will introduce two reference techniques, reference model elements and mirror model elements.

September 23, 2009
User Rating: / 0
Views: 2,409
PDF Link Add comments
Edition: Standard or above (Edition comparison)

Referencing other Project's Model Element
  1. Right click on Model Explorer and select Manage Dependent Project.
    create reference
  2. The Manage Dependent Projects dialog will be shown. This allows you to add and remove project file being referenced by your working project.
    manage dialog
  3. Press Add button, and select the reference project from the file chooser.
    add
  4. Press Close button in Manage Dependent Projects dialog.
  5. Once reference project has been defined, a combo box will be shown in Model Explorer. You can switch the Model Explorer between your working project and the referenced project through this combo box.
    select project
  6. You can drag out models from referenced project to your working diagram, and connect them with your current projects.
    using reference class
  7. When using referenced class model in sequence diagram, operations from the referenced classifier will also available when creating operations.
    using reference class in sd
  8. The list of referenced models can be found by selecting List Referenced Model Element/Shape in the combo box.
    list ref
    The advantage is using referenced model is your working project not necessary to store any information about the referenced model. This helps to reduce the size of the project. But since the referenced model is read only from its source project, one of the limitation is you cannot create child on it. To overcome this problem, you can Create Mirror Model Element to your working project. The mirrored model element is also in read only on its properties, but compare to models in reference project, you can add child model to it.
  9. You can create mirror model element by right click on the model in referenced project, and select Create Mirror Model Element.
    create mirror
  10. Name of the mirrored element will be updated automatically when it is changed in its source project.
    rename

Resources

  1. ShapeEditor.vpp
  2. shapes.vpp

Rate this Article

Click on one of the stars below to rate this article from 1 (lowest) to 5 (highest).

You may be interested in

  1. Writing Effective Use Case
  2. Draw Entity Relationship Diagram (ERD)
    Tagged:
  3. UML Package Diagram
    Tagged:
  4. Produce UML Use Cases from Business Process Diagram (BPD)
  5. Oracle database design with Entity Relationship Diagram
Tags of this article:

Comments (0)

Write comment

Rating

Comment

Enter the calculation result

security code