Browse the source UML model sample

To be able to write an MDWorkbench program, we need to know the structure of the information to handle. We will open a sample UML model and navigate its contents. Here is a diagram of this model:

To open the UML sample model:

  1. In the Project Explorer, select the file com.sodius.mdw.samples.tutorial\models\product21.xmi.
  2. Click Open in the contextual menu, or press F3.

The UML model is loaded and shows up in a model editor:

When you select an instance (e.g. Customer), you can display its properties in the Properties view (bottom of the screen):

The Properties view displays attributes (e.g. the name Customer) and references (to other instances) of the selected instance. The references of the selected instance can also be inspected in the Instances section of the model editor, navigating through the children of the Customer instance for example:

You can see the Class Customer is linked to the Property orders through the reference attribute.

Note: references starting with a '/' are derived references (computed from other attributes or references).

Related concepts
Model

Related tasks
Navigating through MDWorkbench user interface