Example usage for org.eclipse.jface.dialogs IDialogConstants FINISH_LABEL

List of usage examples for org.eclipse.jface.dialogs IDialogConstants FINISH_LABEL

Introduction

In this page you can find the example usage for org.eclipse.jface.dialogs IDialogConstants FINISH_LABEL.

Prototype

String FINISH_LABEL

To view the source code for org.eclipse.jface.dialogs IDialogConstants FINISH_LABEL.

Click Source Link

Document

The label for finish buttons.

Usage

From source file:ca.uvic.cs.tagsea.research.UserIDDialog.java

License:Open Source License

protected void createButtonsForButtonBar(Composite parent) {
    okay = createButton(parent, IDialogConstants.OK_ID, "Get ID", true);
    // create OK and Cancel buttons by default
    finish = createButton(parent, IDialogConstants.FINISH_ID, IDialogConstants.FINISH_LABEL, false);
    cancel = createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
    finish.setEnabled(false);/*w  w w  .  j  a v a 2  s.c o  m*/
}

From source file:com.aptana.ui.dialogs.MinimizableWizardDialog.java

License:Open Source License

protected void updateFinishButton(Button button) {
    if (button != null) {
        button.setText(/*from   w  ww . j a  va 2s .c  o  m*/
                hideOnFinish ? Messages.MinimizableWizardDialog_hideLabel : IDialogConstants.FINISH_LABEL);
    }
}

From source file:com.codesourcery.internal.installer.ui.WizardDialog.java

License:Open Source License

/**
 * Creates the buttons for this dialog's button bar.
 * <p>//  w  ww.jav a 2  s  . co m
 * The <code>WizardDialog</code> implementation of this framework method
 * prevents the parent composite's columns from being made equal width in
 * order to remove the margin between the Back and Next buttons.
 * </p>
 * 
 * @param parent
 *            the parent composite to contain the buttons
 */
protected void createButtonsForButtonBar(Composite parent) {
    ((GridLayout) parent.getLayout()).makeColumnsEqualWidth = false;
    if (wizard.isHelpAvailable()) {
        helpButton = createButton(parent, IDialogConstants.HELP_ID, IDialogConstants.HELP_LABEL, false);
    }
    if (wizard.needsPreviousAndNextButtons()) {
        createPreviousAndNextButtons(parent);
    }
    finishButton = createButton(parent, IDialogConstants.FINISH_ID, IDialogConstants.FINISH_LABEL, true);
    cancelButton = createCancelButton(parent);

    if (parent.getDisplay().getDismissalAlignment() == SWT.RIGHT) {
        // Make the default button the right-most button.
        // See also special code in org.eclipse.jface.dialogs.Dialog#initializeBounds()
        finishButton.moveBelow(null);
    }
}

From source file:com.github.reprogrammer.swtbot.examples.EclipseBot.java

License:Open Source License

public void createNewJavaProject(String projectName) {
    bot.menu("File").menu("New").menu("Project...").click();

    final SWTBotShell shell = activateShellWithName("New Project");

    getCurrentTree().expandNode("Java").select("Java Project");
    bot.button(IDialogConstants.NEXT_LABEL).click();

    bot.textWithLabel("Project name:").setText(projectName);

    bot.button(IDialogConstants.FINISH_LABEL).click();

    bot.waitUntil(new DefaultCondition() {

        @Override/*from  w  ww.  j  a  v a  2 s. co  m*/
        public boolean test() throws Exception {
            return Conditions.shellCloses(shell).test()
                    || bot.shell("Open Associated Perspective?").isVisible();
        }

        @Override
        public String getFailureMessage() {
            return "Failed to close the new project wizard.";
        }
    });
    dismissJavaPerspectiveIfPresent();
}

From source file:com.github.reprogrammer.swtbot.examples.EclipseBot.java

License:Open Source License

public void createNewJavaClass(String projectName, String packageName, String className) {
    selectJavaProject(projectName);//from w  w w. j a v a 2s  .  c  o m

    bot.menu("File").menu("New").menu("Class").click();

    activateShellWithName("New Java Class");

    bot.textWithLabel("Package:").setText(packageName);
    bot.textWithLabel("Name:").setText(className);

    bot.button(IDialogConstants.FINISH_LABEL).click();
}

From source file:com.google.dart.tools.tests.swtbot.model.EditorBotWindow.java

License:Open Source License

private void createProject(String string, Project type, String editorName) {
    waitForAnalysis();/*from   w  w w .j a va  2s .  c o  m*/
    menu("File").menu("New Project...").click();
    SWTBotText textField = bot.textWithTooltip(ProjectMessages.NewApplicationWizardPage_project_name_tooltip);
    textField.setText("sample");
    SWTBotTable types = bot.tableInGroup("Sample content");
    types.select(type.ordinal());
    bot.button(IDialogConstants.FINISH_LABEL).click();
    bot.waitUntilWidgetAppears(Conditions.waitForEditor(new EditorWithTitle(editorName)));
    filesView().waitForToolsOutput();
    bot.editorByTitle(editorName).setFocus();
}

From source file:com.google.dart.tools.ui.internal.dialogs.MultiElementListSelectionDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    fBackButton = createButton(parent, IDialogConstants.BACK_ID, IDialogConstants.BACK_LABEL, false);
    fNextButton = createButton(parent, IDialogConstants.NEXT_ID, IDialogConstants.NEXT_LABEL, true);
    fFinishButton = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.FINISH_LABEL, false);
    createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
}

From source file:eu.numberfour.n4js.ui.organize.imports.MultiElementListSelectionDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    fBackButton = createButton(parent, IDialogConstants.BACK_ID, IDialogConstants.BACK_LABEL, false);

    // XXX: Workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=279425
    boolean HAS_BUG_279425 = true;
    fNextButton = createButton(parent, IDialogConstants.NEXT_ID, IDialogConstants.NEXT_LABEL, !HAS_BUG_279425);
    fFinishButton = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.FINISH_LABEL, HAS_BUG_279425);

    createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
}

From source file:net.sf.eclipsensis.help.commands.NSISCommandDialog.java

License:Open Source License

@Override
public void create() {
    super.create();

    getButton(IDialogConstants.OK_ID).setText(IDialogConstants.FINISH_LABEL);
    if (mParamEditor != null) {
        mParamEditor.initEditor();//from   w w  w.  jav a 2  s .  c o m
    }
    validate();

    if (!mCollapseHelp && mTray != null) {
        openTray(mTray);
    }
    mParamEditorControl.forceFocus();
}

From source file:org.bonitasoft.expressions.test.TestConnectorExpression.java

License:Open Source License

private void createConnectorDefinition(String id) {
    SWTBotConnectorTestUtil.activateConnectorDefinitionShell(bot);
    fillDefinition(id);/*  ww  w  . j  a va 2s  .com*/
    bot.button(IDialogConstants.NEXT_LABEL).click();
    addInputsToConnectorDef();
    bot.button(IDialogConstants.NEXT_LABEL).click();
    createConnectorConfigurationWizard("connectorExpressionWizardTest");
    bot.button(IDialogConstants.FINISH_LABEL).click();
}