At first you need to expand class folder from palette. Palette contains Magik UML elements like exemplars, slots etc. which can be dropped into the editor area.
Select and put into the editor area a new mixin exemplar (Class > mixin). This will create a new UML class with mixin stereotype.
Change exemplar name to point. (Use one mouse click, F2 shortcut or Properties view > General > Name).
We can change exemplar types by switching to other dedicated stereotypes. To change element stereotype:
Stereotypes contain specific properties used in code generation. In this case we edit pragma for slotted exemplar. To do this expand the tree from profile stereotype.
Change classify level by double selecting present value and choosing restricted value in dialog.
Change topic name to modeling. To assign a string value to property use button.
Magik Properties are available directly in palette or by manually applying other stereotype for selected property. In this tutorial we will create two slots.
Goto the palette, expand Property folder and select slot element.
Drop slot element in point mixin
Change name of this slot to x
Create second slot repeating previous steps.
Change name of this slot to y
We can quickly manage our slots generation in Properties view > Profile by expanding stereotype tree and editing property values.
Goto palette, expand Operation folder and select method.
Drop method into point exemplar and rename it to change_location
Select method in diagram and goto Properties view > General > OwnedPanameter
Select UML tab
Type x_coordinate for parameter name and press OK.
Create second parameter with y_coordinate as name.
Select method and goto Documentation view.
Type Changes coordinates to location specified by x_coordinate and y_coordinate as a comment.
Create new model