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:
parent
33fc7cd057
commit
743ad102bb
2 changed files with 29 additions and 33 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -80,35 +80,33 @@
|
||||||
<enablement>
|
<enablement>
|
||||||
<with variable="selection">
|
<with variable="selection">
|
||||||
<count value="1"/>
|
<count value="1"/>
|
||||||
<iterate
|
<iterate>
|
||||||
ifEmpty="false">
|
<or>
|
||||||
<adapt
|
<instanceof value="org.eclipse.cdt.core.model.IBinary"/>
|
||||||
type="org.eclipse.cdt.core.model.ICElement">
|
<instanceof value="org.eclipse.cdt.core.model.ICProject"/>
|
||||||
<or>
|
<test
|
||||||
<instanceof
|
forcePluginActivation="true"
|
||||||
value="org.eclipse.cdt.core.model.IBinary">
|
property="org.eclipse.cdt.launch.isExecutable"/>
|
||||||
</instanceof>
|
<test
|
||||||
<instanceof
|
forcePluginActivation="true"
|
||||||
value="org.eclipse.cdt.core.model.ICProject">
|
property="org.eclipse.cdt.launch.isCProject"/>
|
||||||
</instanceof>
|
<and>
|
||||||
</or>
|
<instanceof value="org.eclipse.ui.IFileEditorInput"/>
|
||||||
</adapt>
|
<adapt type="org.eclipse.core.resources.IResource">
|
||||||
|
<adapt type="org.eclipse.cdt.core.model.ICElement"/>
|
||||||
|
</adapt>
|
||||||
|
</and>
|
||||||
|
</or>
|
||||||
</iterate>
|
</iterate>
|
||||||
</with>
|
</with>
|
||||||
</enablement>
|
</enablement>
|
||||||
<contextLabel
|
</contextualLaunch>
|
||||||
mode="run"
|
<description
|
||||||
label="%ContextualRunCApplication.label"/>
|
mode="run"
|
||||||
<contextLabel
|
description="%ContextualRunCApplication.description"/>
|
||||||
mode="debug"
|
<description
|
||||||
label="%ContextualDebugCApplication.label"/>
|
mode="debug"
|
||||||
</contextualLaunch>
|
description="%ContextualDebugCApplication.description"/>
|
||||||
<perspective
|
|
||||||
id="org.eclipse.cdt.ui.CPerspective">
|
|
||||||
</perspective>
|
|
||||||
<perspective
|
|
||||||
id="org.eclipse.debug.ui.DebugPerspective">
|
|
||||||
</perspective>
|
|
||||||
<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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue