Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2010-04-29 18:45:45 -0400
committerPawel Piech2010-04-29 18:45:45 -0400
commit718f11adefc98d386f0f312dc8883089dbb52308 (patch)
tree2c772226477aa7dce5c2c4846202d91f7a58929c /debug/org.eclipse.cdt.debug.ui/plugin.xml
parent9acd76c5b0af0f18e182db219ba58c3ec01ddd51 (diff)
downloadorg.eclipse.cdt-718f11adefc98d386f0f312dc8883089dbb52308.tar.gz
org.eclipse.cdt-718f11adefc98d386f0f312dc8883089dbb52308.tar.xz
org.eclipse.cdt-718f11adefc98d386f0f312dc8883089dbb52308.zip
Bug 289526 - [debug view] Migrate the Restart feature to the new one, as supported by the platform
Diffstat (limited to 'debug/org.eclipse.cdt.debug.ui/plugin.xml')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/plugin.xml33
1 files changed, 18 insertions, 15 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/plugin.xml b/debug/org.eclipse.cdt.debug.ui/plugin.xml
index 166ced8fd9..1853b0395c 100644
--- a/debug/org.eclipse.cdt.debug.ui/plugin.xml
+++ b/debug/org.eclipse.cdt.debug.ui/plugin.xml
@@ -372,12 +372,14 @@
</propertyTester>
</extension>
-
- <extension
+ <!-- Bug 289526 [debug view] Migrate the Restart feature to the new one, as supported by the platform
+ Don't contribute this action to context menu if selection isn't an IRestart. Debug platform
+ already contributes it. -->
+ <extension
point="org.eclipse.ui.popupMenus">
<viewerContribution
targetID="org.eclipse.debug.ui.DebugView"
- id="org.eclipse.cdt.debug.ui.debugview.popupMenu">
+ id="org.eclipse.cdt.debug.ui.debugview.popupMenu2">
<action
label="%RestartAction.label"
icon="icons/elcl16/restart.gif"
@@ -387,7 +389,20 @@
enablesFor="1"
id="org.eclipse.cdt.debug.internal.ui.actions.RestartActionDelegate">
<selection class="org.eclipse.cdt.debug.core.model.IRestart"/>
+
</action>
+ <visibility>
+ <objectClass name="org.eclipse.cdt.debug.core.model.IRestart"/>
+ </visibility>
+ </viewerContribution>
+ </extension>
+
+
+ <extension
+ point="org.eclipse.ui.popupMenus">
+ <viewerContribution
+ targetID="org.eclipse.debug.ui.DebugView"
+ id="org.eclipse.cdt.debug.ui.debugview.popupMenu">
<action
state="false"
style="toggle"
@@ -878,18 +893,6 @@
targetID="org.eclipse.debug.ui.DebugView"
id="org.eclipse.cdt.debug.ui.debugview.toolbar">
<action
- id="org.eclipse.cdt.debug.internal.ui.actions.RestartActionDelegate"
- toolbarPath="threadGroup"
- class="org.eclipse.cdt.debug.internal.ui.actions.RestartActionDelegate"
- disabledIcon="icons/dlcl16/restart.gif"
- enablesFor="1"
- icon="icons/elcl16/restart.gif"
- helpContextId="restart_action_context"
- label="%RestartAction.label"
- tooltip="%RestartAction.tooltip">
- <selection class="org.eclipse.cdt.debug.core.model.IRestart"/>
- </action>
- <action
state="false"
style="toggle"
id="org.eclipse.cdt.debug.internal.ui.actions.ToggleInstructionStepModeActionDelegate"

Back to the top