Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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 06f78003658..4949ee678f4 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