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

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

Introduction

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

Prototype

int FINISH_ID

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

Click Source Link

Document

Button id for a "Finish" button (value 16).

Usage

From source file:org.universaal.tools.packaging.tool.api.WizardDialogMod.java

License:Open Source License

@Override
public void buttonPressed(int buttonId) {
    switch (buttonId) {
    case IDialogConstants.HELP_ID: {
        helpPressed();//from w  w w  . j a  v  a  2  s. c  o m
        break;
    }
    case IDialogConstants.BACK_ID: {
        WizardPageMod page = (WizardPageMod) getCurrentPage();
        if (page.backPressed()) // to handle custom events
            backPressed();
        break;
    }
    case IDialogConstants.NEXT_ID: {

        WizardPageMod page = (WizardPageMod) getCurrentPage();
        if (page.nextPressed()) // to handle custom events
            nextPressed();
        break;
    }
    case IDialogConstants.FINISH_ID: {
        finishPressed();
        break;
    }
    }
}

From source file:org.xmind.ui.internal.dialogs.NewWorkbookWizardDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    if (withOpenButton) {
        createButton(parent, OPEN_ID, DialogMessages.NewWorkbookWizardDialog_OpenExistingFile_text, false);
    }//from  w  ww  .  ja v a  2s.  co  m
    super.createButtonsForButtonBar(parent);
    Button finishButton = getButton(IDialogConstants.FINISH_ID);
    if (finishButton != null) {
        finishButton.setText(DialogMessages.NewWorkbookWizardDialog_Choose_text);
    }
    if (withOpenButton) {
        GridData data = (GridData) parent.getLayoutData();
        data.grabExcessHorizontalSpace = true;
        data.horizontalAlignment = SWT.FILL;
    }
}

From source file:spritey.ui.dialogs.ModelessWizardDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    super.createButtonsForButtonBar(parent);

    Button finish = getButton(IDialogConstants.FINISH_ID);
    finish.setText(Messages.SPRITE_SHEET_WIZARD_BUILD);
    setButtonLayoutData(finish);/* www. ja  v a  2  s  . c  om*/

    Button cancel = getButton(IDialogConstants.CANCEL_ID);
    cancel.setText(Messages.SPRITE_SHEET_WIZARD_CLOSE);
    setButtonLayoutData(cancel);
}

From source file:spritey.ui.dialogs.StaticWizardDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    super.createButtonsForButtonBar(parent);

    Button finish = getButton(IDialogConstants.FINISH_ID);
    finish.setText(IDialogConstants.OK_LABEL);
    setButtonLayoutData(finish);//from   w w w. ja va  2s .  c  o m
}