| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.2"?> |
| <plugin> |
| |
| <extension point="org.eclipse.debug.core.launchConfigurationTypes"> |
| <launchConfigurationType |
| delegate="org.eclipse.papyrus.robotics.ros2.launch.RoboticsLaunchDelegate" |
| id="org.eclipse.papyrus.robotics.ros2.launchConfiguration" |
| modes="run" |
| name="Robotics launch configuration"> |
| </launchConfigurationType> |
| </extension> |
| |
| <extension point="org.eclipse.debug.ui.launchConfigurationTabGroups"> |
| <launchConfigurationTabGroup |
| class="org.eclipse.papyrus.robotics.ros2.launch.RoboticsLaunchConfigurationTabGroup" |
| id="org.eclipse.papyrus.robotics.launchConfigurationTabGroup" |
| type="org.eclipse.papyrus.robotics.ros2.launchConfiguration"> |
| </launchConfigurationTabGroup> |
| </extension> |
| <extension point="org.eclipse.debug.ui.launchConfigurationTypeImages"> |
| <launchConfigurationTypeImage |
| configTypeID="org.eclipse.papyrus.robotics.ros2.launchConfiguration" |
| icon="platform:/plugin/org.eclipse.papyrus.robotics.diagrams/icons/robotics-16x16.png" |
| id="org.eclipse.papyrus.robotics.launchConfigurationTypeImage"> |
| </launchConfigurationTypeImage> |
| </extension> |
| |
| <extension point="org.eclipse.ui.commands"> |
| <command |
| categoryId="org.eclipse.papyrus.editor.category" |
| defaultHandler="org.eclipse.papyrus.robotics.ros2.launch.handlers.LaunchScriptHandler" |
| id="org.eclipse.papyrus.robotics.ros2.launch.LaunchScriptCmd" |
| name="Launch ROS2 code"/> |
| <command |
| categoryId="org.eclipse.papyrus.editor.category" |
| defaultHandler="org.eclipse.papyrus.robotics.ros2.launch.handlers.LaunchAndActivateHandler" |
| id="org.eclipse.papyrus.robotics.ros2.launch.LaunchAndActivateCmd" |
| name="Launch and activate ROS2 code"/> |
| <command |
| categoryId="org.eclipse.papyrus.editor.category" |
| defaultHandler="org.eclipse.papyrus.robotics.ros2.launch.handlers.DebugCodeHandler" |
| id="org.eclipse.papyrus.robotics.ros2.launch.DebugCodeCmd" |
| name="Debug ROS2 code"/> |
| <command |
| categoryId="org.eclipse.papyrus.editor.category" |
| defaultHandler="org.eclipse.papyrus.robotics.ros2.launch.handlers.ConfigureNodeHandler" |
| id="org.eclipse.papyrus.robotics.ros2.launch.ConfigureNodeCmd" |
| name="Configure node"/> |
| <command |
| categoryId="org.eclipse.papyrus.editor.category" |
| defaultHandler="org.eclipse.papyrus.robotics.ros2.launch.handlers.ActivateNodeHandler" |
| id="org.eclipse.papyrus.robotics.ros2.launch.ActivateNodeCmd" |
| name="Activate node"/> |
| <command |
| categoryId="org.eclipse.papyrus.editor.category" |
| defaultHandler="org.eclipse.papyrus.robotics.ros2.launch.handlers.DeActivateNodeHandler" |
| id="org.eclipse.papyrus.robotics.ros2.launch.DeActivateNodeCmd" |
| name="DeActivate node"/> |
| <command |
| categoryId="org.eclipse.papyrus.editor.category" |
| defaultHandler="org.eclipse.papyrus.robotics.ros2.launch.handlers.CleanupNodeHandler" |
| id="org.eclipse.papyrus.robotics.ros2.launch.CleanupNodeCmd" |
| name="Cleanup node"/> |
| <command |
| categoryId="org.eclipse.papyrus.editor.category" |
| defaultHandler="org.eclipse.papyrus.robotics.ros2.launch.handlers.ShutdownNodeHandler" |
| id="org.eclipse.papyrus.robotics.ros2.launch.ShutdownNodeCmd" |
| name="Shutdown node"/> |
| </extension> |
| <extension point="org.eclipse.ui.menus"> |
| <menuContribution |
| allPopups="false" |
| locationURI="popup:org.eclipse.papyrus.robotics.simplifiedui.ui.menu"> |
| <command |
| commandId="org.eclipse.papyrus.robotics.ros2.launch.LaunchAndActivateCmd" |
| icon="platform:/plugin/org.eclipse.papyrus.robotics.diagrams/icons/robotics-16x16.png"> |
| <visibleWhen checkEnabled="false"> |
| <iterate> |
| <adapt type="org.eclipse.emf.ecore.EObject"> |
| <or> |
| <test property="org.eclipse.papyrus.uml.stereotype" value="robotics::components::System"/> |
| <test property="org.eclipse.papyrus.uml.stereotype" value="robotics::components::ComponentInstance"/> |
| </or> |
| </adapt> |
| </iterate> |
| </visibleWhen> |
| </command> |
| <command |
| commandId="org.eclipse.papyrus.robotics.ros2.launch.LaunchScriptCmd" |
| icon="platform:/plugin/org.eclipse.papyrus.robotics.diagrams/icons/robotics-16x16.png"> |
| <visibleWhen checkEnabled="false"> |
| <iterate> |
| <adapt type="org.eclipse.emf.ecore.EObject"> |
| <or> |
| <test property="org.eclipse.papyrus.uml.stereotype" value="robotics::components::System"/> |
| <test property="org.eclipse.papyrus.uml.stereotype" value="robotics::components::ComponentInstance"/> |
| </or> |
| </adapt> |
| </iterate> |
| </visibleWhen> |
| </command> |
| <command |
| commandId="org.eclipse.papyrus.robotics.ros2.launch.DebugCodeCmd" |
| icon="platform:/plugin/org.eclipse.papyrus.robotics.diagrams/icons/robotics-16x16.png"> |
| <visibleWhen checkEnabled="false"> |
| <with variable="selection"> |
| <test property="org.eclipse.papyrus.robotics.ros2.tester.binAvailable" |
| value="unconfigured" |
| forcePluginActivation="true"/> |
| </with> |
| </visibleWhen> |
| </command> |
| <command |
| commandId="org.eclipse.papyrus.robotics.ros2.launch.ConfigureNodeCmd" |
| icon="platform:/plugin/org.eclipse.papyrus.robotics.diagrams/icons/robotics-16x16.png"> |
| <visibleWhen checkEnabled="false"> |
| <with variable="selection"> |
| <test property="org.eclipse.papyrus.robotics.ros2.tester.currentState" |
| value="unconfigured" |
| forcePluginActivation="true"/> |
| </with> |
| </visibleWhen> |
| </command> |
| <command |
| commandId="org.eclipse.papyrus.robotics.ros2.launch.ActivateNodeCmd" |
| icon="platform:/plugin/org.eclipse.papyrus.robotics.diagrams/icons/robotics-16x16.png"> |
| <visibleWhen checkEnabled="true"> |
| <with variable="selection"> |
| <test property="org.eclipse.papyrus.robotics.ros2.tester.currentState" |
| value="inactive" |
| forcePluginActivation="true"/> |
| </with> |
| </visibleWhen> |
| </command> |
| <command |
| commandId="org.eclipse.papyrus.robotics.ros2.launch.DeActivateNodeCmd" |
| icon="platform:/plugin/org.eclipse.papyrus.robotics.diagrams/icons/robotics-16x16.png"> |
| <visibleWhen checkEnabled="true"> |
| <with variable="selection"> |
| <test property="org.eclipse.papyrus.robotics.ros2.tester.currentState" |
| value="active" |
| forcePluginActivation="true"/> |
| </with> |
| </visibleWhen> |
| </command> |
| <command |
| commandId="org.eclipse.papyrus.robotics.ros2.launch.CleanupNodeCmd" |
| icon="platform:/plugin/org.eclipse.papyrus.robotics.diagrams/icons/robotics-16x16.png"> |
| <visibleWhen checkEnabled="false"> |
| <with variable="selection"> |
| <test property="org.eclipse.papyrus.robotics.ros2.tester.currentState" |
| value="inactive" |
| forcePluginActivation="true"/> |
| </with> |
| </visibleWhen> |
| </command> |
| <command |
| commandId="org.eclipse.papyrus.robotics.ros2.launch.ShutdownNodeCmd" |
| icon="platform:/plugin/org.eclipse.papyrus.robotics.diagrams/icons/robotics-16x16.png"> |
| <visibleWhen checkEnabled="false"> |
| <with variable="selection"> |
| <test property="org.eclipse.papyrus.robotics.ros2.tester.currentState" |
| value="unconfigured,inactive,active" |
| forcePluginActivation="true"/> |
| </with> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| <extension point="org.eclipse.core.expressions.propertyTesters"> |
| <propertyTester |
| class="org.eclipse.papyrus.robotics.ros2.launch.proptesters.LaunchTester" |
| id="org.eclipse.papyrus.robotics.ros2.tester" |
| namespace="org.eclipse.papyrus.robotics.ros2.tester" |
| properties="currentState, binAvailable" |
| type="org.eclipse.jface.viewers.IStructuredSelection"> |
| </propertyTester> |
| </extension> |
| </plugin> |
| |
| |
| |