Example usage for org.eclipse.jface.wizard Wizard getDialogSettings

List of usage examples for org.eclipse.jface.wizard Wizard getDialogSettings

Introduction

In this page you can find the example usage for org.eclipse.jface.wizard Wizard getDialogSettings.

Prototype

@Override
    public IDialogSettings getDialogSettings() 

Source Link

Usage

From source file:com.google.gdt.eclipse.gph.hge.HgWizardHelperImpl.java

License:Open Source License

public void addMercurialPages(Wizard wizard, GPHProject project) {
    clonePage = new ClonePage(null, "CreateRepoPage", "Clone repository", null);
    clonePage.setDescription("Create a clone from another hg repository (local or remote).");
    (clonePage).setDialogSettings(wizard.getDialogSettings());

    // also, use MercurialEclipsePlugin.isHgUsable()
    HgRepositoryLocationManager locationManager = MercurialEclipsePlugin.getRepoManager();

    try {/*from   w ww.  j  a v  a2 s .c o m*/
        // TODO: hardcoded to the first repo url
        IHgRepositoryLocation location = locationManager.getRepoLocation(project.getRepoUrls().get(0),
                project.getUser().getUserName(), project.getUser().getRepoPassword());

        (clonePage).setInitialRepo(location);
    } catch (Exception hge) {
        wizard.addPage(new ShowErrorPage(wizard, hge));
    }

    IWizardPage selectRevisionPage = new SelectRevisionPage("SelectRevisionPage");

    importPage = new ProjectsImportPage("ProjectsImportPage");

    wizard.addPage(clonePage);
    wizard.addPage(selectRevisionPage);
    wizard.addPage(importPage);
}