The DSL customization engine allows specification of a preferred metatype if more than one metatype is defined for the DSL element.
To define a preferred metatype for the DSL type
- Select the appropriate customization element and open its Specification window.
- Click the value specification cell of the Preferred Metatype property and do one of the following:
- Select the property value from the open list and close the Specification window.
- Click the button to create a new one. In the element Selection dialog, select the created metatype and click OK. Close the Specification window.
The selected metatype will be assigned as the Preferred Metatype property value.
Multiple selection is not allowed. You must define a single value.
After updating the customization element specification, you must either reuse the DSL Customization profile in the model or reopen the model.
From now on, all DSL elements will be created with the preferred metatype specified in the customization.
Related Pages