Modeling mixin exemplars

1. Creating mixin exemplar

To add a mixin exemplar go to palette and expand Class folder. Select mixin type and drop it in editor field.

We can also change existing class element to mixin:

  1. Select this Class and go to Properties View
  2. In Properties View select Profile tab
  3. In Profile tab we can add a mixin stereotype. Click on + icon
  4. To apply <<slotted>> stereotype just drag it to the right and click ok.

2. Editing exemplar options

Any UML element (with Magik stereotype applied) contains tags, which allow to edit specific generation options. Mixin exemplar contains only Common tags.

Related concepts
Modeling with stereotypes

Related tasks
Common tags