Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-Andre Laperle2011-09-17 12:01:56 -0400
committerMarc-Andre Laperle2011-09-17 12:01:56 -0400
commit4e006745830816eddc34045a5747b0161a4e2444 (patch)
tree52fd6d6ec0b7dd423f7b4e403d02c0fc0e146580 /build/org.eclipse.cdt.managedbuilder.ui
parent74b716c6d3c9b4fc95eb4eede09fc570b39ddad3 (diff)
downloadorg.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
Diffstat (limited to 'build/org.eclipse.cdt.managedbuilder.ui')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSWizardHandler.java29
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 14fa0ce258..73be50d9ad 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);
}

Back to the top