Model editor

With the help of the Model Editor it is possible to create and edit the model of the application at runtime in the application itself. The view of the Model Editor is divided into two parts.

Tree of object types

The tree of object types is located on the left-hand side:

The outermost level of the tree lists the model modules of the application (for example, DemoPlain). The direct children of the modules correspond to types within the model module. The rest of the tree reflects the type hierarchy within the module. For example, Plain-C is a subtype of Plain-BC, which in turn is a subtype of Plain-All. Plain-All is a type within the module DemoPlain.

In the tree of object types, two different types are represented:

1. classes, which can be recognized by thepreceding name of the class.

2. enumerations, which can be recognized by the preceding name of the enumeration.

In the Test module, as the name suggests, Class is a class and Enumeration is an enumeration.

The view next to the tree of object types is divided into 4 sections:

Properties

The Properties tab displays the detail view for the selected object type or module.

Attributes

The Attributes tab is only visible for special object types (classes and enumerations). If a type is selected, a table of all attributes and a suitable detail view are displayed in this view. In this view, you can add new attributes to the type or modify existing attributes.

Instances

The Instances tab is also only visible for the above mentioned object types. All instances of the selected object type are displayed here. It is also possible to create new instances.

Diagram

The Diagram tab extends the Properties and Attributes tabs and provides a visual representation of the selected module (or the associated module if a type is selected). The view of the diagram is divided into two parts. On the left side is the diagram and on the other side is a detail view for the selected element.

In the diagram itself it is possible to create new classes by and new enumerations by . By selecting a type in the diagram a context menu appears

appears in which it is possible to create inheritances by , compositions by , references byand attributes by .

Furthermore, selected elements in the diagram can be deleted by and hidden by.