Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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