1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-05 07:15:39 +02:00

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 <bastien.matthew@gmail.com>
This commit is contained in:
Matthew Bastien 2017-06-26 11:21:55 -04:00
parent ff9289d396
commit bb7cbf8429

View file

@ -143,7 +143,8 @@ public class LaunchBarLaunchConfigDialog extends TitleAreaDialog implements ILau
configControl.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); configControl.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
if (lastSelection == null) { if (lastSelection == null) {
// Assuming the first one ends up selected // Select the first tab by default
tabFolder.setSelection(tabItem);
lastSelection = tabItem; lastSelection = tabItem;
} }
} }