Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2002-06-17 17:27:43 -0400
committerDarin Wright2002-06-17 17:27:43 -0400
commit22f9b45973cadcb712b70141a34552894a09a1d9 (patch)
treeeb1cd363abfb0f19817794582eec0977db422946 /org.eclipse.debug.ui
parent9a3c59fea6223ea7433ba34f4dc597676b7a7217 (diff)
downloadeclipse.platform.debug-22f9b45973cadcb712b70141a34552894a09a1d9.tar.gz
eclipse.platform.debug-22f9b45973cadcb712b70141a34552894a09a1d9.tar.xz
eclipse.platform.debug-22f9b45973cadcb712b70141a34552894a09a1d9.zip
bug 20492
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/LaunchDropDownAction.java20
1 files changed, 13 insertions, 7 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 f4631d144..e84fe3fa1 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
@@ -1,9 +1,11 @@
package org.eclipse.debug.internal.ui.actions;
-/*
- * (c) Copyright IBM Corp. 2000, 2001.
- * All Rights Reserved.
- */
+/**********************************************************************
+Copyright (c) 2000, 2002 IBM Corp. All rights reserved.
+This file is made available under the terms of the Common Public License v1.0
+which accompanies this distribution, and is available at
+http://www.eclipse.org/legal/cpl-v10.html
+**********************************************************************/
import org.eclipse.debug.core.ILaunchManager;
import org.eclipse.debug.internal.ui.DebugUIPlugin;
@@ -167,8 +169,12 @@ public abstract class LaunchDropDownAction implements IWorkbenchWindowPulldownDe
// Separator between favorites and history
if (favoriteList.length > 0) {
- new MenuItem(menu, SWT.SEPARATOR);
- }
+ if (historyList.length > 0) {
+ new MenuItem(menu, SWT.SEPARATOR);
+ } else {
+ createTopSeparator(menu);
+ }
+ }
// Add history launches next
for (int i = 0; i < historyList.length; i++) {
@@ -180,7 +186,7 @@ public abstract class LaunchDropDownAction implements IWorkbenchWindowPulldownDe
// Separator between history and common actions
if (historyList.length > 0) {
- new MenuItem(menu, SWT.SEPARATOR);
+ createTopSeparator(menu);
}
// Add the actions to bring up the dialog

Back to the top