| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.4"?> |
| <plugin> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <category |
| name="BT Animation UI Category" |
| id="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.category"> |
| </category> |
| <command |
| categoryId="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.category" |
| id="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.commands.StartAnimation" |
| name="Start BT Animation"> |
| </command> |
| <command |
| categoryId="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.category" |
| id="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.commands.StopAnimation" |
| name="Stop BT Animation"> |
| </command> |
| </extension> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.eclipse.papyrus.robotics.bt.animation.zmq.handlers.StartZMQBasedBTAnimationHandler" |
| commandId="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.commands.StartAnimation"> |
| <enabledWhen> |
| <with |
| variable="selection"> |
| <instanceof value="org.eclipse.jface.viewers.IStructuredSelection"/> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.propertytesters.BTAnimationTester.isBTAnimationOff" |
| value="true"> |
| </test> |
| </with> |
| </enabledWhen> |
| </handler> |
| <handler |
| class="org.eclipse.papyrus.robotics.bt.animation.zmq.handlers.StopZMQBasedBTAnimationHandler" |
| commandId="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.commands.StopAnimation"> |
| <enabledWhen> |
| <with |
| variable="selection"> |
| <instanceof value="org.eclipse.jface.viewers.IStructuredSelection"/> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.propertytesters.BTAnimationTester.isBTAnimationOn" |
| value="true"> |
| </test> |
| </with> |
| </enabledWhen> |
| </handler> |
| </extension> |
| <extension |
| point="org.eclipse.core.expressions.propertyTesters"> |
| <propertyTester |
| class="org.eclipse.papyrus.robotics.bt.animation.core.propertytesters.BTAnimationTester" |
| id="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.propertytesters.BTAnimationTester" |
| namespace="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.propertytesters.BTAnimationTester" |
| properties="isBTAnimationOff, isBTAnimationOn" |
| type="org.eclipse.jface.viewers.IStructuredSelection"> |
| </propertyTester> |
| </extension> |
| <extension |
| point="org.eclipse.ui.menus"> |
| <menuContribution |
| locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu?endof=editMenu"> |
| <command |
| icon="icons/robmosys-16x16.png" |
| commandId="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.commands.StartAnimation" |
| id="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.menus.diagrameditor.StartAnimation"> |
| <visibleWhen |
| checkEnabled="false"> |
| <with |
| variable="selection"> |
| <instanceof value="org.eclipse.jface.viewers.IStructuredSelection"/> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.papyrus.robotics.bt.ui.propertytesters.umlactivitytreeroottester.isTreeRoot" |
| value="true"> |
| </test> |
| </with> |
| </visibleWhen> |
| </command> |
| <command |
| icon="icons/robmosys-16x16.png" |
| commandId="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.commands.StopAnimation" |
| id="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.menus.diagrameditor.StopAnimation"> |
| <visibleWhen |
| checkEnabled="false"> |
| <with |
| variable="selection"> |
| <instanceof value="org.eclipse.jface.viewers.IStructuredSelection"/> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.papyrus.robotics.bt.ui.propertytesters.umlactivitytreeroottester.isTreeRoot" |
| value="true"> |
| </test> |
| </with> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| <menuContribution |
| allPopups="false" |
| locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup"> |
| <command |
| icon="icons/robmosys-16x16.png" |
| commandId="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.commands.StartAnimation" |
| id="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.menus.modelexplorer.StartAnimation"> |
| <visibleWhen |
| checkEnabled="false"> |
| <with |
| variable="selection"> |
| <instanceof value="org.eclipse.jface.viewers.IStructuredSelection"/> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.papyrus.robotics.bt.ui.propertytesters.umlactivitytreeroottester.isTreeRoot" |
| value="true"> |
| </test> |
| </with> |
| </visibleWhen> |
| </command> |
| <command |
| icon="icons/robmosys-16x16.png" |
| commandId="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.commands.StopAnimation" |
| id="org.eclipse.papyrus.robotics.bt.animation.zmq.ui.menus.modelexplorer.StopAnimation"> |
| <visibleWhen |
| checkEnabled="false"> |
| <with |
| variable="selection"> |
| <instanceof value="org.eclipse.jface.viewers.IStructuredSelection"/> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.papyrus.robotics.bt.ui.propertytesters.umlactivitytreeroottester.isTreeRoot" |
| value="true"> |
| </test> |
| </with> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| </plugin> |