Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Inglis2004-04-23 13:37:24 +0000
committerDavid Inglis2004-04-23 13:37:24 +0000
commit57c631cd4c4b5864e4b30a70575c9270050f594f (patch)
tree4683fee5710f84400217a08800c38831b473df56 /launch/org.eclipse.cdt.launch/plugin.xml
parent34f1154c4f4c7b867344a7d45453f73b72a70d32 (diff)
downloadorg.eclipse.cdt-57c631cd4c4b5864e4b30a70575c9270050f594f.tar.gz
org.eclipse.cdt-57c631cd4c4b5864e4b30a70575c9270050f594f.tar.xz
org.eclipse.cdt-57c631cd4c4b5864e4b30a70575c9270050f594f.zip
fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=59680
Diffstat (limited to 'launch/org.eclipse.cdt.launch/plugin.xml')
-rw-r--r--launch/org.eclipse.cdt.launch/plugin.xml34
1 files changed, 27 insertions, 7 deletions
diff --git a/launch/org.eclipse.cdt.launch/plugin.xml b/launch/org.eclipse.cdt.launch/plugin.xml
index 06f7800365..4949ee678f 100644
--- a/launch/org.eclipse.cdt.launch/plugin.xml
+++ b/launch/org.eclipse.cdt.launch/plugin.xml
@@ -14,6 +14,7 @@
</runtime>
<requires>
<import plugin="org.eclipse.ui.ide"/>
+ <import plugin="org.eclipse.core.expressions"/>
<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.debug.core"/>
<import plugin="org.eclipse.debug.ui"/>
@@ -76,18 +77,27 @@
label="%CApplicationShortcut.label"
icon="icons/c_app.gif"
modes="run, debug"
- filterClass="org.eclipse.cdt.launch.internal.CApplicationLaunchShortcut"
class="org.eclipse.cdt.launch.internal.CApplicationLaunchShortcut"
id="org.eclipse.cdt.debug.ui.localCShortcut">
+ <contextualLaunch>
+ <enablement>
+ <with variable="selection">
+ <count value="1"/>
+ <iterate>
+ <test property="org.eclipse.cdt.launch.isExecutable"/>
+ </iterate>
+ </with>
+ </enablement>
+ <contextLabel
+ mode="run"
+ label="%ContextualRunJavaApplication.label"/>
+ <contextLabel
+ mode="debug"
+ label="%ContextualDebugJavaApplication.label"/>
+ </contextualLaunch>
<filter
name="ContextualLaunchActionFilter"
value="supportsContextualLaunch"/>
- <contextLabel
- mode="run"
- label="%ContextualRunJavaApplication.label"/>
- <contextLabel
- mode="debug"
- label="%ContextualDebugJavaApplication.label"/>
<perspective
id="org.eclipse.cdt.ui.CPerspective">
</perspective>
@@ -96,5 +106,15 @@
</perspective>
</shortcut>
</extension>
+<!-- Property testers -->
+ <extension point="org.eclipse.core.expressions.propertyTesters">
+ <propertyTester
+ namespace="org.eclipse.cdt.launch"
+ properties="isExecutable"
+ type="org.eclipse.core.resources.IResource"
+ class="org.eclipse.cdt.launch.internal.CPropertyTester"
+ id="org.eclipse.cdt.launch.CPropertyTester">
+ </propertyTester>
+ </extension>
</plugin>

Back to the top