Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Grunberg2016-01-04 21:31:18 +0000
committerJeff Johnston2016-01-05 20:48:14 +0000
commit35df9b23068fd118d5d39556745ff3ffb7b438b6 (patch)
tree47e0a4ddc9d2f4b42c105664c6a94a16242a2cb6
parent6b2f3dcc35077e6440c6fd90f1599154ea0047e1 (diff)
downloadorg.eclipse.linuxtools-35df9b23068fd118d5d39556745ff3ffb7b438b6.tar.gz
org.eclipse.linuxtools-35df9b23068fd118d5d39556745ff3ffb7b438b6.tar.xz
org.eclipse.linuxtools-35df9b23068fd118d5d39556745ff3ffb7b438b6.zip
Bug 479312: Implement own launch action set to remove 'debug' entries.
The standard org.eclipse.debug.ui.launchActionSet includes 'debug' entries that have no use in the Docker perspective so we need to implement our own launch action set to include only the 'run' actions. Change-Id: I2543aeb1040f2ade96c34da63d27753c0cff5295 Reviewed-on: https://git.eclipse.org/r/63584 Tested-by: Hudson CI Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
-rw-r--r--containers/org.eclipse.linuxtools.docker.ui/icons/run_exc.pngbin0 -> 620 bytes
-rw-r--r--containers/org.eclipse.linuxtools.docker.ui/icons/run_exc_d.pngbin0 -> 532 bytes
-rw-r--r--containers/org.eclipse.linuxtools.docker.ui/icons/runlast_co.pngbin0 -> 693 bytes
-rw-r--r--containers/org.eclipse.linuxtools.docker.ui/icons/runlast_co_d.pngbin0 -> 578 bytes
-rw-r--r--containers/org.eclipse.linuxtools.docker.ui/plugin.properties8
-rw-r--r--containers/org.eclipse.linuxtools.docker.ui/plugin.xml71
6 files changed, 79 insertions, 0 deletions
diff --git a/containers/org.eclipse.linuxtools.docker.ui/icons/run_exc.png b/containers/org.eclipse.linuxtools.docker.ui/icons/run_exc.png
new file mode 100644
index 0000000000..08571c1f22
--- /dev/null
+++ b/containers/org.eclipse.linuxtools.docker.ui/icons/run_exc.png
Binary files differ
diff --git a/containers/org.eclipse.linuxtools.docker.ui/icons/run_exc_d.png b/containers/org.eclipse.linuxtools.docker.ui/icons/run_exc_d.png
new file mode 100644
index 0000000000..051c86caf9
--- /dev/null
+++ b/containers/org.eclipse.linuxtools.docker.ui/icons/run_exc_d.png
Binary files differ
diff --git a/containers/org.eclipse.linuxtools.docker.ui/icons/runlast_co.png b/containers/org.eclipse.linuxtools.docker.ui/icons/runlast_co.png
new file mode 100644
index 0000000000..0d9cdfef0d
--- /dev/null
+++ b/containers/org.eclipse.linuxtools.docker.ui/icons/runlast_co.png
Binary files differ
diff --git a/containers/org.eclipse.linuxtools.docker.ui/icons/runlast_co_d.png b/containers/org.eclipse.linuxtools.docker.ui/icons/runlast_co_d.png
new file mode 100644
index 0000000000..efae9ba35f
--- /dev/null
+++ b/containers/org.eclipse.linuxtools.docker.ui/icons/runlast_co_d.png
Binary files differ
diff --git a/containers/org.eclipse.linuxtools.docker.ui/plugin.properties b/containers/org.eclipse.linuxtools.docker.ui/plugin.properties
index 709c2d61e0..b9db73e2e5 100644
--- a/containers/org.eclipse.linuxtools.docker.ui/plugin.properties
+++ b/containers/org.eclipse.linuxtools.docker.ui/plugin.properties
@@ -110,3 +110,11 @@ command.showInWebBrowser.menu.description=Show in Web Browser
command.showInSystemExplorer.menu.name=System Explorer
command.showInSystemExplorer.menu.descrption=Show in System Explorer
+
+LaunchActionSet.label=Launch
+RunMenu.label=&Run
+OpenRunConfigurations.label=Ru&n Configurations...
+RunWithConfigurationAction.label=Run A&s
+RunHistoryMenuAction.label=Run His&tory
+ContextLaunchingRunMenu.name=&Run
+RunDropDownAction.label=Run
diff --git a/containers/org.eclipse.linuxtools.docker.ui/plugin.xml b/containers/org.eclipse.linuxtools.docker.ui/plugin.xml
index b6939a07ee..8bb34c4c06 100644
--- a/containers/org.eclipse.linuxtools.docker.ui/plugin.xml
+++ b/containers/org.eclipse.linuxtools.docker.ui/plugin.xml
@@ -1373,6 +1373,9 @@
relationship="left"
relative="org.eclipse.ui.editorss">
</view>
+ <actionSet
+ id="org.eclipse.linuxtools.docker.launchActionSet">
+ </actionSet>
</perspectiveExtension>
</extension>
<extension
@@ -1463,4 +1466,72 @@
type="org.eclipse.linuxtools.docker.ui.runDockerImageLaunchConfigurationType">
</launchConfigurationTabGroup>
</extension>
+ <extension
+ point="org.eclipse.ui.actionSets">
+ <actionSet
+ label="%LaunchActionSet.label"
+ visible="false"
+ id="org.eclipse.linuxtools.docker.launchActionSet">
+ <menu
+ label="%RunMenu.label"
+ path="additions"
+ id="org.eclipse.ui.run">
+ <separator
+ name="relaunchGroup">
+ </separator>
+ <separator
+ name="runGroup">
+ </separator>
+ <separator
+ name="emptyLaunchGroup">
+ </separator>
+ </menu>
+ <action
+ class="org.eclipse.debug.internal.ui.actions.OpenRunConfigurations"
+ definitionId="org.eclipse.debug.ui.commands.OpenRunConfigurations"
+ helpContextId="open_run_configurations_action_context"
+ id="org.eclipse.debug.ui.actions.OpenRunConfigurations"
+ label="%OpenRunConfigurations.label"
+ menubarPath="org.eclipse.ui.run/runGroup">
+ </action>
+ <action
+ class="org.eclipse.debug.internal.ui.actions.RunAsAction"
+ helpContextId="run_with_configuration_action_context"
+ id="org.eclipse.debug.internal.ui.actions.RunWithConfigurationAction"
+ label="%RunWithConfigurationAction.label"
+ menubarPath="org.eclipse.ui.run/runGroup"
+ style="pulldown">
+ </action>
+ <action
+ label="%RunHistoryMenuAction.label"
+ style="pulldown"
+ helpContextId="run_history_menu_action_context"
+ class="org.eclipse.debug.internal.ui.actions.RunHistoryMenuAction"
+ menubarPath="org.eclipse.ui.run/runGroup"
+ id="org.eclipse.debug.internal.ui.actions.RunHistoryMenuAction">
+ </action>
+ <action
+ id="org.eclipse.debug.ui.actions.RunLast"
+ hoverIcon="icons/runlast_co.png"
+ class="org.eclipse.debug.internal.ui.actions.RunLastAction"
+ definitionId="org.eclipse.debug.ui.commands.RunLast"
+ disabledIcon="icons/runlast_co_d.png"
+ icon="icons/runlast_co.png"
+ helpContextId="run_last_action_context"
+ label="%ContextLaunchingRunMenu.name"
+ menubarPath="org.eclipse.ui.run/relaunchGroup">
+ </action>
+ <action
+ id="org.eclipse.debug.internal.ui.actions.RunDropDownAction"
+ toolbarPath="org.eclipse.debug.ui.launchActionSet/debug"
+ hoverIcon="icons/run_exc.png"
+ class="org.eclipse.debug.internal.ui.actions.RunToolbarAction"
+ disabledIcon="icons/run_exc_d.png"
+ icon="icons/run_exc.png"
+ helpContextId="run_action_context"
+ label="%RunDropDownAction.label"
+ style="pulldown">
+ </action>
+ </actionSet>
+ </extension>
</plugin>

Back to the top