Example usage for org.eclipse.jface.wizard IWizardPage setDescription

List of usage examples for org.eclipse.jface.wizard IWizardPage setDescription

Introduction

In this page you can find the example usage for org.eclipse.jface.wizard IWizardPage setDescription.

Prototype

void setDescription(String description);

Source Link

Document

Sets this dialog page's description text.

Usage

From source file:com.ebmwebsourcing.petals.services.su.wizards.AbstractServiceUnitWizard.java

License:Open Source License

@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);//w w  w. jav  a  2  s . c om

    if (page.getDescription() == null) {
        if (this.petalsMode == PetalsMode.consumes)
            page.setDescription(getComponentVersionDescription().getConsumeDescription());
        else if (this.petalsMode == PetalsMode.provides)
            page.setDescription(getComponentVersionDescription().getProvideDescription());
    }
}

From source file:com.mentor.nucleus.internal.test.NewCBTestWizard1.java

License:Open Source License

public void init(IWorkbench workbench, IStructuredSelection selection) {
    super.init(workbench, selection);
    IWizardPage testPage1 = new TestPage();
    testPage1.setTitle("Code Builder TestPage 1");
    testPage1.setDescription("Code Builder Test Description 1");
    this.addPage(testPage1);
    IWizardPage testPage2 = new TestPage();
    testPage2.setTitle("Code Builder TestPage 2");
    testPage2.setDescription("Code Builder Test Description 2");
    this.addPage(testPage2);
}

From source file:com.mentor.nucleus.internal.test.NewCBTestWizard2.java

License:Open Source License

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);
}

From source file:com.mentor.nucleus.internal.test.NewMCTestWizard1.java

License:Open Source License

public void init(IWorkbench workbench, IStructuredSelection selection) {
    super.init(workbench, selection);
    IWizardPage testPage1 = new TestPage();
    testPage1.setTitle("TestPage 1");
    testPage1.setDescription("Test Description 1");
    this.addPage(testPage1);
    IWizardPage testPage2 = new TestPage();
    testPage2.setTitle("TestPage 2");
    testPage2.setDescription("Test Description 2");
    this.addPage(testPage2);
    String[] mcis = null;//ww  w  . j ava2 s . c o m
    if (getDelegatingWizard() != null) {
        mcis = getDelegatingWizard().getChoices();
        if (mcis.length > 1) {
            addPage(new WizardCodeBuilderChooserPage("newCodeBuilderChooser")); // $NON-NLS-1$
        } else if (mcis.length == 1) {
            setDelegate(mcis[0]);
        }
    }
}

From source file:com.persistent.ui.projwizard.WATabPage.java

License:Open Source License

@Override
public IWizardPage getPreviousPage() {
    int tabIndex = folder.getSelectionIndex();
    IWizardPage page = getWizard().getPage(Messages.tbPg);
    /*//from   www. j  a va2 s .  co  m
     * If getPreviousPage() is called due to
     * setPageComplete() method
     * then don't check anything.
     * Be on same page.
     */
    if (inHndlPgCmpltBackBtn) {
        folder.setSelection(tabIndex);
    } else {
        if (tabIndex == 1) {
            changeToJdkTab();
        } else if (tabIndex == 2) {
            folder.setSelection(srvTab);
            page.setDescription(Messages.dplPageSrvMsg);
            prevTabIndex = 1;
        } else {
            page = super.getPreviousPage();
            prevTabIndex = 0;
        }
    }
    inHndlPgCmpltBackBtn = false;
    return page;
}

From source file:org.bonitasoft.studio.actors.ui.wizard.FilterWizard.java

License:Open Source License

@Override
public IWizardPage getNextPage(IWizardPage page) {
    IWizardPage p = super.getNextPage(page);
    if (p instanceof SelectNameAndDescWizardPage) {
        ConnectorDefinition def = selectionPage.getSelectedConnectorDefinition();
        String connectorDefinitionLabel = messageProvider.getConnectorDefinitionLabel(def);
        if (connectorDefinitionLabel == null && def != null) {
            connectorDefinitionLabel = def.getId();
        }/*from  ww w.  java  2  s  .c  o m*/
        p.setTitle(Messages.bind(Messages.filterWizardTitle, connectorDefinitionLabel,
                connectorWorkingCopy.getDefinitionVersion()));
        p.setDescription(Messages.filterWizardMessage);
    }
    return p;
}

From source file:org.eclipse.emf.ecore.xcore.ui.EmptyXcoreProjectWizard.java

License:Open Source License

@Override
public void addPages() {
    // TODO Auto-generated method stub
    super.addPages();
    IWizardPage[] pages = getPages();//from   w  ww  .j  av a2 s.  c o m
    IWizardPage page = pages[pages.length - 1];
    page.setTitle(Platform.getResourceBundle(XcoreActivator.getInstance().getBundle())
            .getString("_UI_NewXcoreProject_title"));
    page.setDescription(Platform.getResourceBundle(XcoreActivator.getInstance().getBundle())
            .getString("_UI_NewXcoreProject_description"));
}

From source file:org.eclipse.oomph.targlets.presentation.ComponentModelWizard.java

License:Open Source License

/**
 * The framework calls this to create the contents of the wizard.
 *//*  www. j  a v a 2  s . co  m*/
@Override
public void addPages() {
    String modelName = getModelName().toLowerCase();
    String message = null;

    if (selection != null && !selection.isEmpty()) {
        Object element = selection.getFirstElement();
        if (element instanceof IResource) {
            IProject project = ((IResource) element).getProject();
            if (!project.isAccessible()) {
                message = "The selected project is not accessible.\nSelect an accessible project to create the new "
                        + modelName + " in.";
            } else {
                file = project.getFile(getFileName());
                if (file.exists()) {
                    message = "A " + modelName
                            + " file does already exist in the selected project.\nDelete it first if you want to create a new "
                            + modelName + " in this project.";
                } else {
                    message = getErrorMessage(file);
                }
            }
        }
    }

    if (file == null && message == null) {
        message = "No project is selected.\nSelect a project to create the new " + modelName + " in.";
    }

    if (message != null) {
        file = null;
        addPage(new ErrorPage(getModelName(), message));
    } else {
        IWizardPage page = createPage(file);
        page.setTitle(getModelName());
        page.setDescription("Create a new " + modelName + " file.");

        addPage(page);
    }
}

From source file:org.eclipse.pde.api.tools.ui.internal.wizards.ApiToolingSetupWizardPage.java

License:Open Source License

@Override
public IWizardPage getNextPage() {
    // always have to collect changes again in the event the user goes back
    // and forth,
    // as a change cannot ever have more than one parent - EVER
    collectChanges();//from   ww w. j  a  v a2  s.  c  om
    IWizardPage page = super.getNextPage();
    if (page != null) {
        page.setDescription(WizardMessages.ApiToolingSetupWizardPage_5);
    }
    return page;
}

From source file:org.eclipse.pde.api.tools.ui.internal.wizards.JavadocConversionPage.java

License:Open Source License

@Override
public IWizardPage getNextPage() {
    // always have to collect changes again in the event the user goes back
    // and forth,
    // as a change cannot ever have more than one parent - EVER
    JavadocConversionRefactoring refactoring = (JavadocConversionRefactoring) getRefactoring();
    HashSet<IProject> projects = new HashSet<IProject>();
    for (Iterator<Object> iterator = checkedset.iterator(); iterator.hasNext();) {
        IProject current = (IProject) iterator.next();
        projects.add(current);/*w  ww  . jav  a 2  s  .co m*/
    }
    refactoring.setProjects(projects);
    refactoring.setRemoveTags(removetags.getSelection());
    IWizardPage page = super.getNextPage();
    if (page != null) {
        page.setDescription(WizardMessages.JavadocConversionPage_changes_required_for_conversion);
    }
    return page;
}