/*
   * (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());
    }
  }
 public void addAdditionalPage(IWizardPage page) {
   page.setWizard(this);
   setForcePreviousAndNextButtons(true);
   additionalPages.add(page);
 }
 /**
  * Add a dynamic wizard page at the end of the wizard.
  *
  * @param page The page to add
  * @see
  *     org.nightlabs.base.ui.wizard.IDynamicPathWizard#addDynamicWizardPage(org.nightlabs.base.ui.wizard.IDynamicPathWizardPage)
  */
 public void addDynamicWizardPage(IWizardPage page) {
   assertPageDoesNotYetExist(page);
   dynamicWizardPages.add(page);
   page.setWizard(this);
 }
Exemple #4
0
 public void addPage(IWizardPage page) {
   pages.add(page);
   page.setWizard(this);
 }
 /**
  * Add a dynamic wizard page to this wizard. Overridden method.
  *
  * @param index At which index to put the page.
  * @param page The page to add
  * @throws IllegalStateException if the value of index is illegal
  * @see org.nightlabs.base.ui.wizard.IDynamicPathWizard#addDynamicWizardPage(int,
  *     org.nightlabs.base.ui.wizard.IDynamicPathWizardPage)
  */
 public void addDynamicWizardPage(int index, IWizardPage page) {
   assertCanInsertDynamicWizardPage(index);
   assertPageDoesNotYetExist(page);
   dynamicWizardPages.add(index, page);
   page.setWizard(this);
 }