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:
parent
6a06d655c6
commit
2d8a86440f
1 changed files with 15 additions and 18 deletions
|
@ -427,25 +427,22 @@ public class MBSWizardHandler extends CWizardHandler {
|
||||||
return; // not probable
|
return; // not probable
|
||||||
|
|
||||||
ICDTCommonProjectWizard wz = (ICDTCommonProjectWizard)getWizard();
|
ICDTCommonProjectWizard wz = (ICDTCommonProjectWizard)getWizard();
|
||||||
|
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(); }
|
||||||
|
|
||||||
|
customPages = MBSCustomPageManager.getCustomPages();
|
||||||
|
|
||||||
|
if (customPages == null)
|
||||||
|
customPages = new IWizardPage[0];
|
||||||
|
|
||||||
if (customPages == null) {
|
for (IWizardPage customPage : customPages)
|
||||||
MBSCustomPageManager.init();
|
customPage.setWizard(wz);
|
||||||
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(); }
|
|
||||||
|
|
||||||
customPages = MBSCustomPageManager.getCustomPages();
|
|
||||||
|
|
||||||
if (customPages == null)
|
|
||||||
customPages = new IWizardPage[0];
|
|
||||||
|
|
||||||
for (IWizardPage customPage : customPages)
|
|
||||||
customPage.setWizard(wz);
|
|
||||||
}
|
|
||||||
setCustomPagesFilter(wz);
|
setCustomPagesFilter(wz);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue