diff options
author | Darin Wright | 2002-06-17 21:27:43 +0000 |
---|---|---|
committer | Darin Wright | 2002-06-17 21:27:43 +0000 |
commit | 22f9b45973cadcb712b70141a34552894a09a1d9 (patch) | |
tree | eb1cd363abfb0f19817794582eec0977db422946 | |
parent | 9a3c59fea6223ea7433ba34f4dc597676b7a7217 (diff) | |
download | eclipse.platform.debug-22f9b45973cadcb712b70141a34552894a09a1d9.tar.gz eclipse.platform.debug-22f9b45973cadcb712b70141a34552894a09a1d9.tar.xz eclipse.platform.debug-22f9b45973cadcb712b70141a34552894a09a1d9.zip |
bug 20492
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/LaunchDropDownAction.java | 20 |
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
|