Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCurtis Windatt2008-05-29 12:18:12 -0400
committerCurtis Windatt2008-05-29 12:18:12 -0400
commit1f26490180af64b87598c0c0d685d6afcbbd75f6 (patch)
tree63ec3e747caa6e6b1de6221c76b9113a5fd71af1 /org.eclipse.debug.ui
parent34d9464e38af608c7dd65ce688b370168d575f76 (diff)
downloadeclipse.platform.debug-1f26490180af64b87598c0c0d685d6afcbbd75f6.tar.gz
eclipse.platform.debug-1f26490180af64b87598c0c0d685d6afcbbd75f6.tar.xz
eclipse.platform.debug-1f26490180af64b87598c0c0d685d6afcbbd75f6.zip
Bug 208062 - First context menu has mysterious Run As/Debug As/Profile As menu entries
https://bugs.eclipse.org/bugs/show_bug.cgi?id=208062
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/plugin.xml71
1 files changed, 64 insertions, 7 deletions
diff --git a/org.eclipse.debug.ui/plugin.xml b/org.eclipse.debug.ui/plugin.xml
index 6e16561d4..a747053db 100644
--- a/org.eclipse.debug.ui/plugin.xml
+++ b/org.eclipse.debug.ui/plugin.xml
@@ -890,7 +890,26 @@
id="org.eclipse.debug.ui.contextualLaunch.profile.submenu">
</action>
<enablement>
- <test property="org.eclipse.debug.core.launchable" value="profile"/>
+ <or>
+ <and>
+ <not>
+ <with variable="org.eclipse.core.runtime.Platform">
+ <test property="org.eclipse.core.runtime.bundleState"
+ args="org.eclipse.debug.core"
+ value="ACTIVE"/>
+ </with>
+ </not>
+ <adapt type="org.eclipse.core.resources.IResource"/>
+ </and>
+ <and>
+ <with variable="org.eclipse.core.runtime.Platform">
+ <test property="org.eclipse.core.runtime.bundleState"
+ args="org.eclipse.debug.core"
+ value="ACTIVE"/>
+ </with>
+ <test property="org.eclipse.debug.core.launchable" value="profile"/>
+ </and>
+ </or>
</enablement>
</objectContribution>
<objectContribution
@@ -904,9 +923,28 @@
enablesFor="+"
id="org.eclipse.debug.ui.contextualLaunch.debug.submenu">
</action>
- <enablement>
- <test property="org.eclipse.debug.core.launchable" value="debug"/>
- </enablement>
+ <enablement>
+ <or>
+ <and>
+ <not>
+ <with variable="org.eclipse.core.runtime.Platform">
+ <test property="org.eclipse.core.runtime.bundleState"
+ args="org.eclipse.debug.core"
+ value="ACTIVE"/>
+ </with>
+ </not>
+ <adapt type="org.eclipse.core.resources.IResource"/>
+ </and>
+ <and>
+ <with variable="org.eclipse.core.runtime.Platform">
+ <test property="org.eclipse.core.runtime.bundleState"
+ args="org.eclipse.debug.core"
+ value="ACTIVE"/>
+ </with>
+ <test property="org.eclipse.debug.core.launchable" value="debug"/>
+ </and>
+ </or>
+ </enablement>
</objectContribution>
<objectContribution
objectClass="java.lang.Object"
@@ -919,9 +957,28 @@
enablesFor="+"
id="org.eclipse.debug.ui.contextualLaunch.run.submenu">
</action>
- <enablement>
- <test property="org.eclipse.debug.core.launchable" value="run"/>
- </enablement>
+ <enablement>
+ <or>
+ <and>
+ <not>
+ <with variable="org.eclipse.core.runtime.Platform">
+ <test property="org.eclipse.core.runtime.bundleState"
+ args="org.eclipse.debug.core"
+ value="ACTIVE"/>
+ </with>
+ </not>
+ <adapt type="org.eclipse.core.resources.IResource"/>
+ </and>
+ <and>
+ <with variable="org.eclipse.core.runtime.Platform">
+ <test property="org.eclipse.core.runtime.bundleState"
+ args="org.eclipse.debug.core"
+ value="ACTIVE"/>
+ </with>
+ <test property="org.eclipse.debug.core.launchable" value="run"/>
+ </and>
+ </or>
+ </enablement>
</objectContribution>
<!-- console additions -->
<viewerContribution

Back to the top