1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 292534 - [New Project Wizard] Phantom page appears while navigating

pages back and forth
This commit is contained in:
Marc-Andre Laperle 2011-09-17 12:01:56 -04:00
parent 6a06d655c6
commit 2d8a86440f

View file

@ -427,25 +427,22 @@ public class MBSWizardHandler extends CWizardHandler {
return; // not probable
ICDTCommonProjectWizard wz = (ICDTCommonProjectWizard)getWizard();
MBSCustomPageManager.init();
MBSCustomPageManager.addStockPage(getStartingPage(), CDTMainWizardPage.PAGE_ID);
MBSCustomPageManager.addStockPage(getConfigPage(), CDTConfigWizardPage.PAGE_ID);
if (customPages == null) {
MBSCustomPageManager.init();
MBSCustomPageManager.addStockPage(getStartingPage(), CDTMainWizardPage.PAGE_ID);
MBSCustomPageManager.addStockPage(getConfigPage(), CDTConfigWizardPage.PAGE_ID);
// load all custom pages specified via extensions
try {
MBSCustomPageManager.loadExtensions();
} catch (BuildException e) { e.printStackTrace(); }
// load all custom pages specified via extensions
try {
MBSCustomPageManager.loadExtensions();
} catch (BuildException e) { e.printStackTrace(); }
customPages = MBSCustomPageManager.getCustomPages();
customPages = MBSCustomPageManager.getCustomPages();
if (customPages == null)
customPages = new IWizardPage[0];
if (customPages == null)
customPages = new IWizardPage[0];
for (IWizardPage customPage : customPages)
customPage.setWizard(wz);
}
for (IWizardPage customPage : customPages)
customPage.setWizard(wz);
setCustomPagesFilter(wz);
}