| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<org_malai_instrument:Instrument 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_instrument="http://org.malai.instrument/1_0_0//org/malai/instrument" xmlns:org_malai_widget="http://org.malai.widget/1_0_0//org/malai/widget" initiallyActivated="true"> |
| 3 |
<links initialiseAction="if(interaction.button==select)
	action.addInstrument(pencil);
else
 	action.addInstrument(hand);"> |
| 4 |
<interaction href="../interactions/ButtonPressed.interaction#/"/> |
| 5 |
<action href="../actions/malaicore.action#//@actions.1"/> |
| 6 |
</links> |
| 7 |
<links initialiseAction="if(interaction.button==select)
	action.addInstrument(hand);
else
 	action.addInstrument(pencil);"> |
| 8 |
<interaction href="../interactions/ButtonPressed.interaction#/"/> |
| 9 |
<action href="../actions/malaicore.action#//@actions.0"/> |
| 10 |
</links> |
| 11 |
<links isConditionRespected="button!=instrument.select"> |
| 12 |
<interaction href="../interactions/ButtonPressed.interaction#/"/> |
| 13 |
<action href="../actions/actionModel.action#//@actions.1"/> |
| 14 |
</links> |
| 15 |
<clazz name="EditingSelector"> |
| 16 |
<eStructuralFeatures xsi:type="ecore:EReference" name="hand" lowerBound="1"> |
| 17 |
<eType xsi:type="ecore:EClass" href="hand.instrument#//@clazz"/> |
| 18 |
</eStructuralFeatures> |
| 19 |
<eStructuralFeatures xsi:type="ecore:EReference" name="pencil" lowerBound="1"> |
| 20 |
<eType xsi:type="ecore:EClass" href="pencil.instrument#//@clazz"/> |
| 21 |
</eStructuralFeatures> |
| 22 |
</clazz> |
| 23 |
<providedWidgets xsi:type="org_malai_widget:ToggleButton" name="select"/> |
| 24 |
<providedWidgets xsi:type="org_malai_widget:ToggleButton" name="rect"/> |
| 25 |
<providedWidgets xsi:type="org_malai_widget:ToggleButton" name="ell"/> |
| 26 |
<providedWidgets xsi:type="org_malai_widget:ToggleButton" name="hand"/> |
| 27 |
</org_malai_instrument:Instrument> |