diff options
author | Marc-Andre Laperle | 2011-09-17 16:01:56 +0000 |
---|---|---|
committer | Marc-Andre Laperle | 2011-09-17 16:01:56 +0000 |
commit | 4e006745830816eddc34045a5747b0161a4e2444 (patch) | |
tree | 52fd6d6ec0b7dd423f7b4e403d02c0fc0e146580 | |
parent | 74b716c6d3c9b4fc95eb4eede09fc570b39ddad3 (diff) | |
download | org.eclipse.cdt-4e006745830816eddc34045a5747b0161a4e2444.tar.gz org.eclipse.cdt-4e006745830816eddc34045a5747b0161a4e2444.tar.xz org.eclipse.cdt-4e006745830816eddc34045a5747b0161a4e2444.zip |
Bug 292534 - [New Project Wizard] Phantom page appears while navigating
pages back and forth
-rw-r--r-- | build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSWizardHandler.java | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSWizardHandler.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSWizardHandler.java index 14fa0ce258b..73be50d9ad8 100644 --- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSWizardHandler.java +++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSWizardHandler.java @@ -427,25 +427,22 @@ public class MBSWizardHandler extends CWizardHandler { return; // not probable ICDTCommonProjectWizard wz = (ICDTCommonProjectWizard)getWizard(); - - if (customPages == null) { - MBSCustomPageManager.init(); - MBSCustomPageManager.addStockPage(getStartingPage(), CDTMainWizardPage.PAGE_ID); - MBSCustomPageManager.addStockPage(getConfigPage(), CDTConfigWizardPage.PAGE_ID); + 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]; - - for (IWizardPage customPage : customPages) - customPage.setWizard(wz); - } + if (customPages == null) + customPages = new IWizardPage[0]; + + for (IWizardPage customPage : customPages) + customPage.setWizard(wz); setCustomPagesFilter(wz); } |