Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2007-01-25 15:55:15 +0000
committerMichael Rennie2007-01-25 15:55:15 +0000
commitc2e66ad7317314064d10282813f3ff2682fe2872 (patch)
treeff239fbbbe2c3a31301c5eedf263734b50dad9a0 /org.eclipse.debug.ui/plugin.xml
parentec3c90c691cfafab291246da23a5d063fe508aab (diff)
downloadeclipse.platform.debug-c2e66ad7317314064d10282813f3ff2682fe2872.tar.gz
eclipse.platform.debug-c2e66ad7317314064d10282813f3ff2682fe2872.tar.xz
eclipse.platform.debug-c2e66ad7317314064d10282813f3ff2682fe2872.zip
Bug 74480
[launching] Simplify the launch experience for less technical users of Eclipse
Diffstat (limited to 'org.eclipse.debug.ui/plugin.xml')
-rw-r--r--org.eclipse.debug.ui/plugin.xml135
1 files changed, 127 insertions, 8 deletions
diff --git a/org.eclipse.debug.ui/plugin.xml b/org.eclipse.debug.ui/plugin.xml
index 1eb56d343..4d55e94b6 100644
--- a/org.eclipse.debug.ui/plugin.xml
+++ b/org.eclipse.debug.ui/plugin.xml
@@ -155,6 +155,15 @@
id="org.eclipse.debug.ui.launchDelegatesKeywords">
</keywordReference>
</page>
+ <page
+ category="org.eclipse.debug.ui.DebugPreferencePage"
+ class="org.eclipse.debug.internal.ui.preferences.ContextLaunchingPreferencePage"
+ id="org.eclipse.debug.ui.contextualLaunchingPage"
+ name="%ContextualLaunchingPrefPage.name">
+ <keywordReference
+ id="org.eclipse.debug.ui.contextLaunching">
+ </keywordReference>
+ </page>
</extension>
<extension point="org.eclipse.ui.actionSets">
<actionSet
@@ -382,12 +391,12 @@
menubarPath="org.eclipse.ui.run/runGroup">
</action>
<action
- label="%RunWithConfigurationAction.label"
- style="pulldown"
- helpContextId="run_with_configuration_action_context"
class="org.eclipse.debug.internal.ui.actions.RunAsAction"
+ helpContextId="run_with_configuration_action_context"
+ id="org.eclipse.debug.internal.ui.actions.RunWithConfigurationAction"
+ label="%RunWithConfigurationAction.label"
menubarPath="org.eclipse.ui.run/runGroup"
- id="org.eclipse.debug.internal.ui.actions.RunWithConfigurationAction">
+ style="pulldown">
</action>
<action
label="%RunHistoryMenuAction.label"
@@ -874,7 +883,12 @@
id="org.eclipse.debug.ui.contextualLaunch.profile.submenu">
</action>
<enablement>
- <test property="org.eclipse.debug.ui.launchable" value="profile"/>
+ <and>
+ <test property="org.eclipse.debug.ui.launchable" value="profile"/>
+ <not>
+ <test property="org.eclipse.debug.ui.contextlaunch" />
+ </not>
+ </and>
</enablement>
</objectContribution>
<objectContribution
@@ -889,7 +903,12 @@
id="org.eclipse.debug.ui.contextualLaunch.debug.submenu">
</action>
<enablement>
- <test property="org.eclipse.debug.ui.launchable" value="debug"/>
+ <and>
+ <test property="org.eclipse.debug.ui.launchable" value="debug"/>
+ <not>
+ <test property="org.eclipse.debug.ui.contextlaunch" />
+ </not>
+ </and>
</enablement>
</objectContribution>
<objectContribution
@@ -904,10 +923,83 @@
id="org.eclipse.debug.ui.contextualLaunch.run.submenu">
</action>
<enablement>
- <test property="org.eclipse.debug.ui.launchable" value="run"/>
+ <and>
+ <test property="org.eclipse.debug.ui.launchable" value="run"/>
+ <not>
+ <test property="org.eclipse.debug.ui.contextlaunch" />
+ </not>
+ </and>
</enablement>
</objectContribution>
+ <objectContribution
+ id="org.eclipse.debug.ui.contextlaunch.debugas"
+ objectClass="org.eclipse.core.runtime.IAdaptable">
+ <action
+ class="org.eclipse.debug.internal.ui.contextlaunching.DebugContextLaunchingAction"
+ enablesFor="1"
+ icon="icons/full/etool16/debug_exc.gif"
+ id="org.eclipse.debug.ui.contextlaunch.debugas"
+ label="%ContextLaunchingDebugMenu.name"
+ menubarPath="additions"
+ tooltip="%ContextLaunchingDebugMenu.tooltip">
+ </action>
+ <enablement>
+ <and>
+ <test
+ property="org.eclipse.debug.ui.resource"
+ />
+ <test
+ property="org.eclipse.debug.ui.contextlaunch"
+ />
+ <test property="org.eclipse.debug.ui.launchable" value="debug"/>
+ </and>
+ </enablement>
+ </objectContribution>
+ <objectContribution
+ id="org.eclipse.debug.ui.contextlaunch.profileas"
+ objectClass="org.eclipse.core.runtime.IAdaptable">
+ <action
+ class="org.eclipse.debug.internal.ui.contextlaunching.ProfileContextLaunchingAction"
+ enablesFor="1"
+ icon="icons/full/etool16/profile_exc.gif"
+ id="org.eclipse.debug.ui.contextlaunch.profileas"
+ label="%ContextLaunchingProfileMenu.name"
+ menubarPath="additions"
+ tooltip="%ContextLaunchingProfileMenu.tooltip">
+ </action>
+ <enablement>
+ <and>
+ <test
+ property="org.eclipse.debug.ui.resource"
+ />
+ <test property="org.eclipse.debug.ui.contextlaunch" />
+ <test property="org.eclipse.debug.ui.launchable" value="profile"/>
+ </and>
+ </enablement>
+ </objectContribution>
<!-- console additions -->
+ <objectContribution
+ id="org.eclipse.debug.ui.contextlaunch.runas"
+ objectClass="org.eclipse.core.runtime.IAdaptable">
+ <action
+ class="org.eclipse.debug.internal.ui.contextlaunching.RunContextLaunchingAction"
+ enablesFor="1"
+ icon="icons/full/etool16/run_exc.gif"
+ id="org.eclipse.debug.ui.contextlaunch.runas"
+ label="%ContextLaunchingRunMenu.name"
+ menubarPath="additions"
+ tooltip="%ContextLaunchingRunMenu.tooltip">
+ </action>
+ <enablement>
+ <and>
+ <test property="org.eclipse.debug.ui.contextlaunch" />
+ <test
+ property="org.eclipse.debug.ui.resource"
+ />
+ <test property="org.eclipse.debug.ui.launchable" value="run"/>
+ </and>
+ </enablement>
+ </objectContribution>
<viewerContribution
targetID="org.eclipse.debug.ui.ProcessConsoleType.#ContextMenu"
id="org.eclipse.debug.ui.processConsoleContextMenu">
@@ -1394,6 +1486,29 @@
</or>
</enabledWhen>
</page>
+ <page
+ class="org.eclipse.debug.internal.ui.preferences.RunDebugPropertiesPage"
+ id="org.eclipse.debug.ui.properties.defaultLaunchConfigurations"
+ name="%DefaultLaunchConfigurationsPropPage.name"
+ >
+ <enabledWhen>
+ <and>
+ <adapt
+ type="org.eclipse.core.resources.IResource">
+ </adapt>
+ <test
+ property="org.eclipse.debug.ui.contextlaunch"
+ />
+ <test
+ property="org.eclipse.debug.ui.contextlaunchable"
+ >
+ </test>
+ <test
+ property="org.eclipse.debug.ui.resource">
+ </test>
+ </and>
+ </enabledWhen>
+ </page>
</extension>
<!-- commands and their bindings
NOTE:
@@ -2032,7 +2147,7 @@ M4 = Platform-specific fourth key
</propertyTester>
<propertyTester
namespace="org.eclipse.debug.ui"
- properties="launchable"
+ properties="launchable, resource, contextlaunch, contextlaunchable"
type="java.lang.Object"
class="org.eclipse.debug.internal.ui.actions.LaunchablePropertyTester"
id="org.eclipse.debug.ui.propertyTesters.launchable">
@@ -2240,6 +2355,10 @@ M4 = Platform-specific fourth key
id="org.eclipse.debug.ui.launchDelegatesKeywords"
label="%preferenceKeywords.launchDelegates">
</keyword>
+ <keyword
+ id="org.eclipse.debug.ui.contextLaunching"
+ label="%preferenceKeywords.contextLaunching">
+ </keyword>
</extension>
<extension
point="org.eclipse.ui.importWizards">

Back to the top