diff options
-rw-r--r-- | org.eclipse.debug.core/buildnotes_platform-debug.html | 4 | ||||
-rw-r--r-- | org.eclipse.debug.ui/plugin.xml | 71 |
2 files changed, 68 insertions, 7 deletions
diff --git a/org.eclipse.debug.core/buildnotes_platform-debug.html b/org.eclipse.debug.core/buildnotes_platform-debug.html index 227093a17..fd1a853c7 100644 --- a/org.eclipse.debug.core/buildnotes_platform-debug.html +++ b/org.eclipse.debug.core/buildnotes_platform-debug.html @@ -60,6 +60,10 @@ <h2>May 28, 2008</h2> <h3>Problem Reports Fixed</h3> +<a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=208062">Bug 208062</a>: First context menu has mysterious Run As/Debug As/Profile As menu entries<br> + +<h2>May 28, 2008</h2> +<h3>Problem Reports Fixed</h3> <a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=233703">Bug 233703</a>: Debug plugin and ProcessConsoleManager misses launches<br> <h2>May 21, 2008</h2> 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 |