diff options
author | Anton Leherbauer | 2007-06-13 12:11:25 +0000 |
---|---|---|
committer | Anton Leherbauer | 2007-06-13 12:11:25 +0000 |
commit | 743ad102bbe72db107278a6705efa8bf2b5b3378 (patch) | |
tree | 293a7270e1e6d0aa7faceff87d32fa1e913d316c /launch | |
parent | 33fc7cd057bd85353e5b1500aaa96a15f35d09c5 (diff) | |
download | org.eclipse.cdt-743ad102bbe72db107278a6705efa8bf2b5b3378.tar.gz org.eclipse.cdt-743ad102bbe72db107278a6705efa8bf2b5b3378.tar.xz org.eclipse.cdt-743ad102bbe72db107278a6705efa8bf2b5b3378.zip |
Fix for 192256: Run/Debug As... Missing from Project Explorer
Diffstat (limited to 'launch')
-rw-r--r-- | launch/org.eclipse.cdt.launch/plugin.properties | 4 | ||||
-rw-r--r-- | launch/org.eclipse.cdt.launch/plugin.xml | 58 |
2 files changed, 29 insertions, 33 deletions
diff --git a/launch/org.eclipse.cdt.launch/plugin.properties b/launch/org.eclipse.cdt.launch/plugin.properties index 21d04b1aa16..c3ac98627d1 100644 --- a/launch/org.eclipse.cdt.launch/plugin.properties +++ b/launch/org.eclipse.cdt.launch/plugin.properties @@ -16,6 +16,6 @@ LocalAttachCDTLaunch.name=C/C++ Attach to Local Application CoreFileCDTLaunch.name=C/C++ Postmortem debugger CApplicationShortcut.label=Local C/C++ Application -ContextualRunCApplication.label=Run Local C/C++ Application -ContextualDebugCApplication.label=Debug Local C/C++ Application +ContextualRunCApplication.description=Runs a local C/C++ application +ContextualDebugCApplication.description=Debugs a local C/C++ application diff --git a/launch/org.eclipse.cdt.launch/plugin.xml b/launch/org.eclipse.cdt.launch/plugin.xml index 471694647b5..523962b6b16 100644 --- a/launch/org.eclipse.cdt.launch/plugin.xml +++ b/launch/org.eclipse.cdt.launch/plugin.xml @@ -80,35 +80,33 @@ <enablement> <with variable="selection"> <count value="1"/> - <iterate - 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> + <or> + <instanceof value="org.eclipse.cdt.core.model.IBinary"/> + <instanceof value="org.eclipse.cdt.core.model.ICProject"/> + <test + forcePluginActivation="true" + property="org.eclipse.cdt.launch.isExecutable"/> + <test + 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> + </and> + </or> </iterate> </with> </enablement> - <contextLabel - mode="run" - label="%ContextualRunCApplication.label"/> - <contextLabel - mode="debug" - label="%ContextualDebugCApplication.label"/> - </contextualLaunch> - <perspective - id="org.eclipse.cdt.ui.CPerspective"> - </perspective> - <perspective - id="org.eclipse.debug.ui.DebugPerspective"> - </perspective> + </contextualLaunch> + <description + mode="run" + description="%ContextualRunCApplication.description"/> + <description + mode="debug" + description="%ContextualDebugCApplication.description"/> <configurationType id="org.eclipse.cdt.launch.localCLaunch"> </configurationType> @@ -141,9 +139,7 @@ </extension> <!-- Adapters for contextual launch --> - <!-- 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"> + <extension point="org.eclipse.core.runtime.adapters"> <factory class="" adaptableType="org.eclipse.cdt.core.model.IBinary"> @@ -156,9 +152,9 @@ </factory> <factory class="" - adaptableType="org.eclipse.cdt.internal.core.model.CProject"> + adaptableType="org.eclipse.cdt.core.model.ICProject"> <adapter type="org.eclipse.debug.ui.actions.ILaunchable"/> </factory> - </extension--> + </extension> </plugin> |