From bb7cbf8429293a5e620a9408981f6b999d9b732e Mon Sep 17 00:00:00 2001 From: Matthew Bastien Date: Mon, 26 Jun 2017 11:21:55 -0400 Subject: [PATCH] Bug 518837: Launch Config Dialog select first tab by default Under certain circumstances the launch config dialog wouldn't have a tab selected when it opened. Changed the selection logic to explicitly select the first tab rather than assume that it would be selected. Change-Id: If2b3e2e933b12feb7e28a74270b34279ec891e54 Signed-off-by: Matthew Bastien --- .../launchbar/ui/internal/LaunchBarLaunchConfigDialog.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bundles/org.eclipse.launchbar.ui/src/org/eclipse/launchbar/ui/internal/LaunchBarLaunchConfigDialog.java b/bundles/org.eclipse.launchbar.ui/src/org/eclipse/launchbar/ui/internal/LaunchBarLaunchConfigDialog.java index bd7a71dd666..a3c4cbec941 100644 --- a/bundles/org.eclipse.launchbar.ui/src/org/eclipse/launchbar/ui/internal/LaunchBarLaunchConfigDialog.java +++ b/bundles/org.eclipse.launchbar.ui/src/org/eclipse/launchbar/ui/internal/LaunchBarLaunchConfigDialog.java @@ -143,7 +143,8 @@ public class LaunchBarLaunchConfigDialog extends TitleAreaDialog implements ILau configControl.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); if (lastSelection == null) { - // Assuming the first one ends up selected + // Select the first tab by default + tabFolder.setSelection(tabItem); lastSelection = tabItem; } }