An alternative way to add a metaobject or metarelation to a mapping in a connection is via the Create pane or by using the quick-create pop-up window. After you have added the element to the diagram, it needs to be linked to an object type from your model. The procedure is described for a metaobject but also applies to metarelations.
- In the diagram, select the metaobject, and click the
- In the properties window, click the Types tab, click the dotted line, type the name of the object type in the text box, and press Enter.
First, type the metamodel name followed by a colon and the name of the object type. Use the type id or name, or the translated name of the object type. Example:
After pressing Enter, only the object type name remains visible:
The metaobject now represents the application components.
Unlike when you drag an object, the name of the object type is not displayed in the top bar of the metaobject. If you want to see the name of the linked object type, you need to manually change the default name that is shown.