Example usage for org.eclipse.jface.wizard WizardPage isPageComplete

List of usage examples for org.eclipse.jface.wizard WizardPage isPageComplete

Introduction

In this page you can find the example usage for org.eclipse.jface.wizard WizardPage isPageComplete.

Prototype

boolean isPageComplete

To view the source code for org.eclipse.jface.wizard WizardPage isPageComplete.

Click Source Link

Document

Indicates whether this page is complete.

Usage

From source file:com.siteview.mde.internal.ui.wizards.templates.NewPluginTemplateChoiceWizard.java

License:Open Source License

public boolean canFinish() {
    ITemplateSection[] sections = fSelectionPage.getSelectedTemplates();
    for (int i = 0; i < sections.length; i++) {
        int pageCount = sections[i].getPageCount();
        for (int j = 0; j < pageCount; j++) {
            WizardPage page = sections[i].getPage(j);
            if (page != null && !page.isPageComplete())
                return false;
        }//from   ww w .j  a  v a 2 s. c  o  m
    }
    return true;
}

From source file:org.eclipse.jpt.dbws.eclipselink.ui.internal.wizards.gen.DbwsGeneratorWizard.java

License:Open Source License

@Override
public boolean performFinish() {

    WizardPage currentPage = (WizardPage) getContainer().getCurrentPage();
    if (currentPage != null) {
        if (!currentPage.isPageComplete()) {
            return false;
        }//  w w w  . j  a  v  a2 s. c om
    }

    String driverJarList = this.jdbcDriversPage.getDriverJarList();
    this.jdbcDriversPage.finish(); // persist settings

    if (DbwsGeneratorUi.displayOverridingWebContentWarning(this.getShell())) {
        this.scheduleGenerateDbwsJob(driverJarList);
    }
    return true;
}

From source file:org.eclipse.jpt.jaxb.ui.internal.wizards.classesgen.ClassesGeneratorWizard.java

License:Open Source License

@Override
public boolean performFinish() {

    WizardPage currentPage = (WizardPage) getContainer().getCurrentPage();
    if (currentPage != null) {
        if (!currentPage.isPageComplete()) {
            return false;
        }/*from   www .ja  v a2 s .  c o m*/
        this.retrieveGeneratorSettings();
        this.retrieveGeneratorOptions();
        this.retrieveGeneratorExtensionOptions();

        IFolder folder = this.getJavaProject().getProject().getFolder(this.destinationFolder);
        this.createFolderIfNotExist(folder);
    }

    if (this.performsGeneration) {
        if (displayOverwritingClassesWarning(this.generatorOptions)) {
            doGenerateJaxbClasses();
            doAddSchemaToLibrary();
        }
    }

    return true;
}

From source file:org.eclipse.ptp.ui.wizards.RMConfigurationWizard.java

License:Open Source License

@Override
public boolean canFinish() {
    int numPages = getNumPages();
    for (int i = 0; i < numPages; ++i) {
        WizardPage page = (WizardPage) fWizardPages.get(i);
        if (!page.isPageComplete()) {
            return false;
        }/* www.j  a v  a  2  s .  c  om*/
    }

    return true;
}

From source file:org.eclipse.wst.xml.ui.internal.wizards.NewModelWizard.java

License:Open Source License

public boolean performFinish() {
    boolean result = true;
    WizardPage currentPage = (WizardPage) getContainer().getCurrentPage();
    if (currentPage != null) {
        result = currentPage.isPageComplete();
    }//from w  w  w  .  j ava 2s .c  o m
    return result;
}