Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2002-06-11 14:32:35 -0400
committerDarin Wright2002-06-11 14:32:35 -0400
commit912306960259058a0ea49a438e49bde91a26b6e3 (patch)
treedee1716dc87006d8e2334ba7ca65ece9f096f4ed /org.eclipse.debug.ui
parent3423707b029e2eead0129523d62b61b18ff08eac (diff)
downloadeclipse.platform.debug-912306960259058a0ea49a438e49bde91a26b6e3.tar.gz
eclipse.platform.debug-912306960259058a0ea49a438e49bde91a26b6e3.tar.xz
eclipse.platform.debug-912306960259058a0ea49a438e49bde91a26b6e3.zip
bug 19928
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/LaunchDropDownAction.java47
1 files changed, 24 insertions, 23 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/LaunchDropDownAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/LaunchDropDownAction.java
index e9efa1e8a..f4631d144 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/LaunchDropDownAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/LaunchDropDownAction.java
@@ -155,28 +155,6 @@ public abstract class LaunchDropDownAction implements IWorkbenchWindowPulldownDe
protected Menu createMenu(Menu menu) {
LaunchConfigurationHistoryElement[] historyList= getHistory();
LaunchConfigurationHistoryElement[] favoriteList = getFavorites();
- // Add the actions to bring up the dialog
- if (getLaunchAction() != null) {
- // Cascading menu for config type 'shortcuts'
- if (getMode() == ILaunchManager.DEBUG_MODE) {
- createMenuForAction(menu, getDebugWithAction(), -1);
- } else {
- createMenuForAction(menu, getRunWithAction(), -1);
- }
-
- // Add non-shortcutted access to the launch configuration dialog
- OpenLaunchConfigurationsAction action = null;
- if (getMode() == ILaunchManager.DEBUG_MODE) {
- action = new OpenDebugConfigurations();
- } else {
- action = new OpenRunConfigurations();
- }
- createMenuForAction(menu, action, -1);
- }
-
- if (favoriteList.length > 0 || historyList.length > 0) {
- createTopSeparator(menu);
- }
// Add any favorites
int total = 0;
@@ -188,7 +166,7 @@ public abstract class LaunchDropDownAction implements IWorkbenchWindowPulldownDe
}
// Separator between favorites and history
- if (favoriteList.length > 0 && historyList.length > 0) {
+ if (favoriteList.length > 0) {
new MenuItem(menu, SWT.SEPARATOR);
}
@@ -199,7 +177,30 @@ public abstract class LaunchDropDownAction implements IWorkbenchWindowPulldownDe
createMenuForAction(menu, newAction, total+1);
total++;
}
+
+ // Separator between history and common actions
+ if (historyList.length > 0) {
+ new MenuItem(menu, SWT.SEPARATOR);
+ }
+ // Add the actions to bring up the dialog
+ if (getLaunchAction() != null) {
+ // Cascading menu for config type 'shortcuts'
+ if (getMode() == ILaunchManager.DEBUG_MODE) {
+ createMenuForAction(menu, getDebugWithAction(), -1);
+ } else {
+ createMenuForAction(menu, getRunWithAction(), -1);
+ }
+
+ // Add non-shortcutted access to the launch configuration dialog
+ OpenLaunchConfigurationsAction action = null;
+ if (getMode() == ILaunchManager.DEBUG_MODE) {
+ action = new OpenDebugConfigurations();
+ } else {
+ action = new OpenRunConfigurations();
+ }
+ createMenuForAction(menu, action, -1);
+ }
return menu;
}

Back to the top