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

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

Introduction

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

Prototype

@Override
public void setTitle(String title) 

Source Link

Document

The WizardPage implementation of this IDialogPage method extends the DialogPage implementation to update the wizard container title bar.

Usage

From source file:at.bestsolution.efxclipse.tooling.pde.ui.E3PluginTemplate.java

License:Open Source License

@Override
public void addPages(Wizard wizard) {
    WizardPage page = createPage(0);
    page.setTitle("Eclipse 3.x ViewPart plugin");
    page.setDescription("Template to create an Eclipse 3.x ViewPart plugin");
    wizard.addPage(page);//from   ww  w .  j a va 2  s. c om
    markPagesAdded();
}

From source file:at.bestsolution.efxclipse.tooling.pde.ui.FXOSGiAppTemplate.java

License:Open Source License

public void addPages(Wizard wizard) {
    WizardPage page = createPage(0);
    page.setTitle("JavaFX Application");
    page.setDescription("Template to create JavaFX application");
    wizard.addPage(page);/*  ww w . j  a v a  2 s  .c  o m*/
    markPagesAdded();
}

From source file:at.bestsolution.efxclipse.tooling.pde.ui.FXOSGiBundleTemplate.java

License:Open Source License

public void addPages(Wizard wizard) {
    WizardPage page = createPage(0);
    page.setTitle("JavaFX Bundle");
    page.setDescription("Template to create JavaFX application");
    wizard.addPage(page);/*from  w  w  w. j ava2  s.c  o  m*/
    markPagesAdded();
}

From source file:at.bestsolution.efxclipse.tooling.pde.ui.HelloRCPTemplate.java

License:Open Source License

public void addPages(Wizard wizard) {
    WizardPage page = createPage(0, null);
    page.setTitle("Basic JavaFX/RCP application");
    page.setDescription(//from w w  w .ja v a  2  s  .  co  m
            "This template creates a minimal standalone JavaFX/RCP application that consists of an application window with a title.");
    wizard.addPage(page);
    markPagesAdded();
}

From source file:carisma.preference.template.PrefPageSection.java

License:Open Source License

@Override
public final void addPages(final Wizard wizard) {
    WizardPage page = createPage(0, "");
    page.setTitle("Preference Page Wizard");
    page.setDescription("Configure your preference page.");
    wizard.addPage(page);//from  www.ja v a  2 s. c om
    markPagesAdded();
    validateOptions(this.createPage);
}

From source file:carisma.template.core.DummyCheckSection.java

License:Open Source License

@Override
public final void addPages(final Wizard wizard) {
    WizardPage page = createPage(0, "");
    page.setTitle("Check Wizard");
    page.setDescription("This Wizard allows you to setup your Check for the CARiSMA Tool properly.");
    wizard.addPage(page);//from w  w  w  .j a va2  s  .  c  o  m
    validatePage();
    markPagesAdded();
}

From source file:cn.dockerfoundry.ide.eclipse.server.ui.internal.DockerFoundryCredentialsPart.java

License:Open Source License

public DockerFoundryCredentialsPart(DockerFoundryServer cfServer, WizardPage wizardPage) {
    this(cfServer);

    if (wizardPage != null) {
        wizardPage.setTitle(NLS.bind(Messages.DockerFoundryCredentialsPart_TEXT_CREDENTIAL_WIZ_TITLE, service));
        wizardPage.setDescription(Messages.SERVER_WIZARD_VALIDATOR_CLICK_TO_VALIDATE);
        ImageDescriptor banner = DockerFoundryImages.getWizardBanner(serverTypeId);
        if (banner != null) {
            wizardPage.setImageDescriptor(banner);
        }/*from  w ww  .ja v  a2  s  .co  m*/
        runnableContext = wizardPage.getWizard() != null && wizardPage.getWizard().getContainer() != null
                ? wizardPage.getWizard().getContainer()
                : null;
    }
}

From source file:com.android.ide.eclipse.adt.internal.wizards.templates.NewProjectWizard.java

License:Open Source License

@Override
public IWizardPage getNextPage(IWizardPage page) {
    if (page == mMainPage) {
        return mContentsPage;
    }//from   w ww. j  av  a2  s  . c  o m

    if (page == mContentsPage) {
        if (mValues.createIcon) {
            // Bundle asset studio wizard to create the launcher icon
            CreateAssetSetWizardState iconState = mValues.iconState;
            iconState.type = AssetType.LAUNCHER;
            iconState.outputName = "ic_launcher"; //$NON-NLS-1$
            iconState.background = new RGB(0xff, 0xff, 0xff);
            iconState.foreground = new RGB(0x33, 0xb6, 0xea);
            iconState.trim = true;

            // ADT 20: White icon with blue shape
            //iconState.shape = GraphicGenerator.Shape.CIRCLE;
            //iconState.sourceType = CreateAssetSetWizardState.SourceType.CLIPART;
            //iconState.clipartName = "user.png"; //$NON-NLS-1$
            //iconState.padding = 10;

            // ADT 21: Use the platform packaging icon, but allow user to customize it
            iconState.sourceType = CreateAssetSetWizardState.SourceType.IMAGE;
            iconState.imagePath = new File(DEFAULT_LAUNCHER_ICON);
            iconState.shape = GraphicGenerator.Shape.NONE;
            iconState.padding = 0;

            WizardPage p = getIconPage(mValues.iconState);
            p.setTitle("Configure Launcher Icon");
            return p;
        } else {
            if (mValues.createActivity) {
                return mActivityPage;
            } else {
                return null;
            }
        }
    }

    if (page == mIconPage) {
        return mActivityPage;
    }

    if (page == mActivityPage && mValues.createActivity) {
        if (mTemplatePage == null) {
            NewTemplateWizardState activityValues = mValues.activityValues;

            // Initialize the *default* activity name based on what we've derived
            // from the project name
            activityValues.defaults.put("activityName", mValues.activityName);

            // Hide those parameters that the template requires but that we don't want to
            // ask the users about, since we will supply these values from the rest
            // of the new project wizard.
            Set<String> hidden = activityValues.hidden;
            hidden.add(ATTR_PACKAGE_NAME);
            hidden.add(ATTR_APP_TITLE);
            hidden.add(ATTR_MIN_API);
            hidden.add(ATTR_MIN_API_LEVEL);
            hidden.add(ATTR_TARGET_API);
            hidden.add(ATTR_BUILD_API);
            hidden.add(IS_LAUNCHER);
            // Don't ask about hierarchical parent activities in new projects where there
            // can't possibly be any
            hidden.add(PARENT_ACTIVITY_CLASS);
            hidden.add(ACTIVITY_TITLE); // Not used for the first activity in the project

            mTemplatePage = new NewTemplatePage(activityValues, false);
            addPage(mTemplatePage);
        }
        mTemplatePage.setCustomMinSdk(mValues.minSdkLevel, mValues.getBuildApi());
        return mTemplatePage;
    }

    if (page == mTemplatePage) {
        TemplateMetadata template = mValues.activityValues.getTemplateHandler().getTemplate();
        if (template != null && !InstallDependencyPage.isInstalled(template.getDependencies())) {
            return getDependencyPage(template, true);
        }
    }

    if (page == mTemplatePage || !mValues.createActivity && page == mActivityPage
            || page == getDependencyPage(null, false)) {
        return null;
    }

    return super.getNextPage(page);
}

From source file:com.puppetlabs.geppetto.ui.wizard.AbstractPuppetProjectWizard.java

License:Open Source License

@Override
public void addPages() {
    WizardPage newProjectCreationPage = newProjectCreationPage("NewProjectCreationPage"); //$NON-NLS-1$

    newProjectCreationPage.setTitle(UIPlugin.getLocalString(getWizardPageTitleKey()));
    newProjectCreationPage.setDescription(UIPlugin.getLocalString(getWizardPageDescriptionKey()));

    addPage(newProjectCreationPage);/*  ww w.  j  a v a2 s. co  m*/
}

From source file:edu.uci.lighthouse.sdk.templates.SimpleViewTemplateSection.java

License:Open Source License

public void addPages(Wizard wizard) {
    WizardPage page = createPage(0, IHelpContextIds.TEMPLATE_INTRO);
    page.setTitle("Lighthouse CompartmentFigure Template");
    page.setDescription("Creates a simple CompartmentFigure to demonstrate...");
    wizard.addPage(page);//w  w  w . j  av a  2s.  c o  m
    markPagesAdded();
}