Skip to main content
summaryrefslogtreecommitdiffstats
path: root/launch
diff options
context:
space:
mode:
authorDoug Schaefer2007-05-04 14:44:15 +0000
committerDoug Schaefer2007-05-04 14:44:15 +0000
commit437d474f598345f74e57a6353ce41779fb7446c5 (patch)
tree5b0a870dee5ceac8a1aca44993bf630063384fc0 /launch
parent2e71cb7dc6170f6e52c4702deb0b16c00c97cd47 (diff)
downloadorg.eclipse.cdt-437d474f598345f74e57a6353ce41779fb7446c5.tar.gz
org.eclipse.cdt-437d474f598345f74e57a6353ce41779fb7446c5.tar.xz
org.eclipse.cdt-437d474f598345f74e57a6353ce41779fb7446c5.zip
Got rid of our use of property testers since we can simply adapt to ICElement and check instanceof for IBinary or ICProject.
Diffstat (limited to 'launch')
-rw-r--r--launch/org.eclipse.cdt.launch/plugin.xml28
1 files changed, 16 insertions, 12 deletions
diff --git a/launch/org.eclipse.cdt.launch/plugin.xml b/launch/org.eclipse.cdt.launch/plugin.xml
index 22841d6b411..c9b7fac6f0b 100644
--- a/launch/org.eclipse.cdt.launch/plugin.xml
+++ b/launch/org.eclipse.cdt.launch/plugin.xml
@@ -81,16 +81,18 @@
<with variable="selection">
<count value="1"/>
<iterate
- ifEmpty="false"
- operator="or">
- <or>
- <test
- forcePluginActivation="true"
- property="org.eclipse.cdt.launch.isExecutable"/>
- <test
- forcePluginActivation="true"
- property="org.eclipse.cdt.launch.isCProject"/>
- </or>
+ ifEmpty="false">
+ <adapt
+ type="org.eclipse.cdt.core.model.ICElement">
+ <or>
+ <instanceof
+ value="org.eclipse.cdt.core.model.IBinary">
+ </instanceof>
+ <instanceof
+ value="org.eclipse.cdt.core.model.ICProject">
+ </instanceof>
+ </or>
+ </adapt>
</iterate>
</with>
</enablement>
@@ -139,7 +141,9 @@
</extension>
<!-- Adapters for contextual launch -->
- <extension point="org.eclipse.core.runtime.adapters">
+ <!-- Doug: I'm not sure these are needed anymore.
+ Contextual launch seems to use a different mechanism now -->
+ <!--extension point="org.eclipse.core.runtime.adapters">
<factory
class=""
adaptableType="org.eclipse.cdt.core.model.IBinary">
@@ -155,6 +159,6 @@
adaptableType="org.eclipse.cdt.internal.core.model.CProject">
<adapter type="org.eclipse.debug.ui.actions.ILaunchable"/>
</factory>
- </extension>
+ </extension-->
</plugin>

Back to the top