| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<org_malai_action:ActionModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:org_malai_action="http://org.malai.action/1_0_0//org/malai/action"> |
| 3 |
<actions undoable="true" execute="drawing.addShape(shape);
" canDo="shape!=null && drawing!=null" undo="drawing.removeShape(shape);" redo="drawing.addShape(shape);"> |
| 4 |
<clazz name="AddShape"> |
| 5 |
<eStructuralFeatures xsi:type="ecore:EReference" name="shape"> |
| 6 |
<eType xsi:type="ecore:EClass" href="../model.ecore#//sf/latexdraw/model/interfaces/IShape"/> |
| 7 |
</eStructuralFeatures> |
| 8 |
<eStructuralFeatures xsi:type="ecore:EReference" name="drawing"> |
| 9 |
<eType xsi:type="ecore:EClass" href="../model.ecore#//sf/latexdraw/model/interfaces/IDrawing"/> |
| 10 |
</eStructuralFeatures> |
| 11 |
</clazz> |
| 12 |
</actions> |
| 13 |
<actions> |
| 14 |
<clazz name="SelectPencilEditingStyle"> |
| 15 |
<eStructuralFeatures xsi:type="ecore:EReference" name="pencil"> |
| 16 |
<eType xsi:type="ecore:EClass" href="../instruments/pencil.instrument#//@clazz"/> |
| 17 |
</eStructuralFeatures> |
| 18 |
<eStructuralFeatures xsi:type="ecore:EAttribute" name="newEditingStyle"> |
| 19 |
<eType xsi:type="ecore:EEnum" href="../instruments/pencil.instrument#//@helpers.0"/> |
| 20 |
</eStructuralFeatures> |
| 21 |
</clazz> |
| 22 |
</actions> |
| 23 |
<actions modifyInstrument="true"> |
| 24 |
<clazz name="CustomisePencil"> |
| 25 |
<eStructuralFeatures xsi:type="ecore:EReference" name="pencil"> |
| 26 |
<eType xsi:type="ecore:EClass" href="../instruments/pencil.instrument#//@clazz"/> |
| 27 |
</eStructuralFeatures> |
| 28 |
<eStructuralFeatures xsi:type="ecore:EAttribute" name="parameter" eType="//@helpers.0"/> |
| 29 |
<eStructuralFeatures xsi:type="ecore:EAttribute" name="newValue"> |
| 30 |
<eType xsi:type="ecore:EDataType" href="../interactions/events.event#//@helpers.0"/> |
| 31 |
</eStructuralFeatures> |
| 32 |
</clazz> |
| 33 |
</actions> |
| 34 |
<helpers xsi:type="ecore:EEnum" name="PencilParameter"> |
| 35 |
<eLiterals name="THICKNESS"/> |
| 36 |
</helpers> |
| 37 |
<helpers xsi:type="ecore:EDataType" name="Object" instanceClassName="java.lang.Object"/> |
| 38 |
</org_malai_action:ActionModel> |