1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 06:45:43 +02:00

Fix for 192256: Run/Debug As... Missing from Project Explorer

This commit is contained in:
Anton Leherbauer 2007-06-13 12:11:25 +00:00
parent 33fc7cd057
commit 743ad102bb
2 changed files with 29 additions and 33 deletions

View file

@ -16,6 +16,6 @@ LocalAttachCDTLaunch.name=C/C++ Attach to Local Application
CoreFileCDTLaunch.name=C/C++ Postmortem debugger CoreFileCDTLaunch.name=C/C++ Postmortem debugger
CApplicationShortcut.label=Local C/C++ Application CApplicationShortcut.label=Local C/C++ Application
ContextualRunCApplication.label=Run Local C/C++ Application ContextualRunCApplication.description=Runs a local C/C++ application
ContextualDebugCApplication.label=Debug Local C/C++ Application ContextualDebugCApplication.description=Debugs a local C/C++ application

View file

@ -80,35 +80,33 @@
<enablement> <enablement>
<with variable="selection"> <with variable="selection">
<count value="1"/> <count value="1"/>
<iterate <iterate>
ifEmpty="false">
<adapt
type="org.eclipse.cdt.core.model.ICElement">
<or> <or>
<instanceof <instanceof value="org.eclipse.cdt.core.model.IBinary"/>
value="org.eclipse.cdt.core.model.IBinary"> <instanceof value="org.eclipse.cdt.core.model.ICProject"/>
</instanceof> <test
<instanceof forcePluginActivation="true"
value="org.eclipse.cdt.core.model.ICProject"> property="org.eclipse.cdt.launch.isExecutable"/>
</instanceof> <test
</or> forcePluginActivation="true"
property="org.eclipse.cdt.launch.isCProject"/>
<and>
<instanceof value="org.eclipse.ui.IFileEditorInput"/>
<adapt type="org.eclipse.core.resources.IResource">
<adapt type="org.eclipse.cdt.core.model.ICElement"/>
</adapt> </adapt>
</and>
</or>
</iterate> </iterate>
</with> </with>
</enablement> </enablement>
<contextLabel
mode="run"
label="%ContextualRunCApplication.label"/>
<contextLabel
mode="debug"
label="%ContextualDebugCApplication.label"/>
</contextualLaunch> </contextualLaunch>
<perspective <description
id="org.eclipse.cdt.ui.CPerspective"> mode="run"
</perspective> description="%ContextualRunCApplication.description"/>
<perspective <description
id="org.eclipse.debug.ui.DebugPerspective"> mode="debug"
</perspective> description="%ContextualDebugCApplication.description"/>
<configurationType <configurationType
id="org.eclipse.cdt.launch.localCLaunch"> id="org.eclipse.cdt.launch.localCLaunch">
</configurationType> </configurationType>
@ -141,9 +139,7 @@
</extension> </extension>
<!-- Adapters for contextual launch --> <!-- Adapters for contextual launch -->
<!-- Doug: I'm not sure these are needed anymore. <extension point="org.eclipse.core.runtime.adapters">
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">
@ -156,9 +152,9 @@
</factory> </factory>
<factory <factory
class="" class=""
adaptableType="org.eclipse.cdt.internal.core.model.CProject"> adaptableType="org.eclipse.cdt.core.model.ICProject">
<adapter type="org.eclipse.debug.ui.actions.ILaunchable"/> <adapter type="org.eclipse.debug.ui.actions.ILaunchable"/>
</factory> </factory>
</extension--> </extension>
</plugin> </plugin>