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

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

Introduction

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

Prototype

int CANCEL_ID

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

Click Source Link

Document

Button id for a "Cancel" button (value 1).

Usage

From source file:com.amalto.workbench.dialogs.FacetsListInputDialog.java

License:Open Source License

protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, false);
    createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
    getButton(IDialogConstants.OK_ID).addSelectionListener(this.caller);

}

From source file:com.amalto.workbench.dialogs.IdentityConstraintInputDialog.java

License:Open Source License

protected void createButtonsForButtonBar(Composite parent) {
    // super.createButtonsForButtonBar(parent);
    // getButton(IDialogConstants.OK_ID).addSelectionListener(this.caller);
    // /*//from  w  ww.  jav  a2s. c  om
    // createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL,
    // true);
    // createButton(parent, IDialogConstants.CANCEL_ID,
    // IDialogConstants.CANCEL_LABEL, false);
    // */

    createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
    createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);

}

From source file:com.amalto.workbench.dialogs.InputComboDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    // create OK and Cancel buttons by default
    okButton = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
    createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
    // do this here because setting the text will set enablement on the ok
    // button//w  w  w.j  a  va  2s  . c  o m
    if (value != null) {
        inputCombo.setText(value);
    }
}

From source file:com.amalto.workbench.dialogs.JobProcesssOptionsDialog.java

License:Open Source License

protected void createButtonsForButtonBar(Composite parent) {
    // create Generate and Cancel buttons by default
    Button button = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
    button.setText(Messages.JobProcesssOptionsDialog_Generate);
    createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
}

From source file:com.amalto.workbench.dialogs.MDMXSDSchemaEntryDialog.java

License:Open Source License

@Override
protected void cancelPressed() {
    setReturnCode(CANCEL);// www . j a v  a 2 s. c om
    getButton(IDialogConstants.CANCEL_ID).setData("dialog", MDMXSDSchemaEntryDialog.this);//$NON-NLS-1$
    // no close let Action Handler handle it
    super.cancelPressed();
}

From source file:com.amalto.workbench.dialogs.MenuEntryDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    super.createButtonsForButtonBar(parent);
    getButton(IDialogConstants.OK_ID).addSelectionListener(this.caller);
    getButton(IDialogConstants.CANCEL_ID).addSelectionListener(this.caller);
}

From source file:com.amalto.workbench.dialogs.MenuEntryDialog.java

License:Open Source License

@Override
protected void cancelPressed() {
    setReturnCode(CANCEL);//from  www .  ja va  2s.  c  o m
    getButton(IDialogConstants.CANCEL_ID).setData("dialog", MenuEntryDialog.this);//$NON-NLS-1$
    // no close let Action Handler handle it
}

From source file:com.amalto.workbench.dialogs.MissingJarDialog.java

License:Open Source License

/**
 * Create contents of the button bar.//from   w  ww.  j av a2s.com
 * 
 * @param parent
 */
@Override
protected void createButtonsForButtonBar(Composite parent) {
    // createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
    createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
}

From source file:com.amalto.workbench.dialogs.ProjectDecisionDialog.java

License:Open Source License

@Override
protected void cancelPressed() {
    setReturnCode(CANCEL);//from w ww .  jav a2  s . co m
    getButton(IDialogConstants.CANCEL_ID).setData("dialog", ProjectDecisionDialog.this);//$NON-NLS-1$
    // no close let Action Handler handle it
}

From source file:com.amalto.workbench.dialogs.SimpleXpathInputDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    super.createButtonsForButtonBar(parent);
    getButton(IDialogConstants.OK_ID).addSelectionListener(this.caller);
    getButton(IDialogConstants.CANCEL_ID).addSelectionListener(this.caller);
    getButton(IDialogConstants.OK_ID).setEnabled(false);
}