mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-21 16:05:25 +02:00
Got rid of our use of property testers since we can simply adapt to ICElement and check instanceof for IBinary or ICProject.
This commit is contained in:
parent
2e71cb7dc6
commit
437d474f59
1 changed files with 16 additions and 12 deletions
|
@ -81,16 +81,18 @@
|
||||||
<with variable="selection">
|
<with variable="selection">
|
||||||
<count value="1"/>
|
<count value="1"/>
|
||||||
<iterate
|
<iterate
|
||||||
ifEmpty="false"
|
ifEmpty="false">
|
||||||
operator="or">
|
<adapt
|
||||||
<or>
|
type="org.eclipse.cdt.core.model.ICElement">
|
||||||
<test
|
<or>
|
||||||
forcePluginActivation="true"
|
<instanceof
|
||||||
property="org.eclipse.cdt.launch.isExecutable"/>
|
value="org.eclipse.cdt.core.model.IBinary">
|
||||||
<test
|
</instanceof>
|
||||||
forcePluginActivation="true"
|
<instanceof
|
||||||
property="org.eclipse.cdt.launch.isCProject"/>
|
value="org.eclipse.cdt.core.model.ICProject">
|
||||||
</or>
|
</instanceof>
|
||||||
|
</or>
|
||||||
|
</adapt>
|
||||||
</iterate>
|
</iterate>
|
||||||
</with>
|
</with>
|
||||||
</enablement>
|
</enablement>
|
||||||
|
@ -139,7 +141,9 @@
|
||||||
</extension>
|
</extension>
|
||||||
|
|
||||||
<!-- Adapters for contextual launch -->
|
<!-- 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
|
<factory
|
||||||
class=""
|
class=""
|
||||||
adaptableType="org.eclipse.cdt.core.model.IBinary">
|
adaptableType="org.eclipse.cdt.core.model.IBinary">
|
||||||
|
@ -155,6 +159,6 @@
|
||||||
adaptableType="org.eclipse.cdt.internal.core.model.CProject">
|
adaptableType="org.eclipse.cdt.internal.core.model.CProject">
|
||||||
<adapter type="org.eclipse.debug.ui.actions.ILaunchable"/>
|
<adapter type="org.eclipse.debug.ui.actions.ILaunchable"/>
|
||||||
</factory>
|
</factory>
|
||||||
</extension>
|
</extension-->
|
||||||
|
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
Loading…
Add table
Reference in a new issue