public void addPages() { IWizardPage testPage1 = new TestPage(); testPage1.setTitle("Code Builder 2 TestPage 1"); testPage1.setDescription("Code Builder 2 Test Description 1"); this.addPage(testPage1); IWizardPage testPage2 = new TestPage(); testPage2.setTitle("Code Builder 2 TestPage 2"); testPage2.setDescription("Code Builder 2 Test Description 2"); this.addPage(testPage2); }
/* * (non-Javadoc) * @see org.eclipse.jface.wizard.Wizard * #addPage(org.eclipse.jface.wizard.IWizardPage) */ @Override public void addPage(IWizardPage page) { super.addPage(page); page.setWizard(this); String title = this.petalsMode == PetalsMode.provides ? "Petals Service Provider" : "Petals Service Consumer"; title += " (" + getComponentVersionDescription().getComponentAlias() + ")"; page.setTitle(title); if (page.getDescription() == null) { if (this.petalsMode == PetalsMode.consumes) page.setDescription(getComponentVersionDescription().getConsumeDescription()); else if (this.petalsMode == PetalsMode.provides) page.setDescription(getComponentVersionDescription().getProvideDescription()); } }