1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-21 07:55:24 +02:00

Launch Bar - fix ordering problem initing launch config edit tabs.

This commit is contained in:
Doug Schaefer 2014-10-01 22:06:08 -04:00
parent 909315e0c7
commit 0a3f35c3ed

View file

@ -128,6 +128,11 @@ public class NewLaunchConfigEditPage extends WizardPage {
// tab.setDefaults likely renames it
nameText.setText(workingCopy.getName());
}
}
// Do this after all the tabs have their controls created
for (ILaunchConfigurationTab tab : tabGroup.getTabs()) {
tab.initializeFrom(workingCopy);
CTabItem tabItem = new CTabItem(tabFolder, SWT.NONE);
tabItem.setText(tab.getName());
@ -136,11 +141,6 @@ public class NewLaunchConfigEditPage extends WizardPage {
tabItem.setControl(tab.getControl());
}
// Do this after all the tabs have their controls created
for (ILaunchConfigurationTab tab : tabGroup.getTabs()) {
tab.initializeFrom(workingCopy);
}
tabFolder.setSelection(0);
} catch (CoreException e) {
Activator.log(e);