Search in sources :

Example 1 with OptionTemplateWizardPage

use of org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.templates.OptionTemplateWizardPage in project gemoc-studio by eclipse.

the class OptionTemplateSection method createPage.

/**
 * Creates the wizard page for the specified page index. This method cannot
 * be called before setPageCount(int). The page will be created with all the
 * options registered for that page index. Therefore, make all the calls to
 * addOption() before calling this method.
 *
 * @param pageIndex
 *            a zero-based index of the page relative to this template. For
 *            example, if a template needs to have two pages, you have to
 *            call this method twice (once with index 0 and again with index
 *            1).
 * @return the created wizard page
 * @see #setPageCount(int)
 * @see BaseOptionTemplateSection#addOption
 */
public WizardPage createPage(int pageIndex) {
    if (pageIndex < 0 || pageIndex >= pages.size())
        return null;
    TemplatePage tpage = pages.get(pageIndex);
    tpage.page = new OptionTemplateWizardPage(this, tpage.options, null);
    return tpage.page;
}
Also used : OptionTemplateWizardPage(org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.templates.OptionTemplateWizardPage)

Example 2 with OptionTemplateWizardPage

use of org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.templates.OptionTemplateWizardPage in project gemoc-studio by eclipse.

the class OptionTemplateSection method createPage.

/**
 * Creates the wizard page for the specified page index. This method cannot
 * be called before setPageCount(int). The page will be created with all the
 * options registered for that page index. Therefore, make all the calls to
 * addOption() before calling this method.
 *
 * @param pageIndex
 *            a zero-based index of the page relative to this template. For
 *            example, if a template need to have two pages, you have to
 *            call this method twice (once with index 0 and again with index
 *            1).
 * @param helpContextId
 *            the Id of the help context defined in the contributing plug-in
 *            that will be used to locate content of the info-pop displayed
 *            when F1 is pressed.
 * @return the created wizard page
 * @see #setPageCount(int)
 * @see BaseOptionTemplateSection#addOption
 */
public WizardPage createPage(int pageIndex, String helpContextId) {
    if (pageIndex < 0 || pageIndex >= pages.size())
        return null;
    TemplatePage tpage = pages.get(pageIndex);
    tpage.page = new OptionTemplateWizardPage(this, tpage.options, helpContextId);
    return tpage.page;
}
Also used : OptionTemplateWizardPage(org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.templates.OptionTemplateWizardPage)

Aggregations

OptionTemplateWizardPage (org.eclipse.gemoc.commons.eclipse.pde.wizards.pages.pde.ui.templates.OptionTemplateWizardPage)2