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.google.gdt.eclipse.designer.util.ui.ResourceSelectionDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
    createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
    getButton(IDialogConstants.OK_ID).setEnabled(false);
}

From source file:com.google.gdt.eclipse.login.ui.LoginBrowser.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
}

From source file:com.google.gdt.eclipse.suite.wizards.CreateAppIdDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    // create Create and Cancel buttons
    createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);

    createButton(parent, IDialogConstants.CLIENT_ID, "Create", false);
    createBtn = getButton(IDialogConstants.CLIENT_ID);
    createBtn.addSelectionListener(new SelectionAdapter() {
        @Override/* w w  w.j  av a2s  . c om*/
        public void widgetSelected(SelectionEvent e) {
            okPressed();
        }
    });
    createBtn.setEnabled(false);
}

From source file:com.hangum.tadpole.commons.admin.core.dialogs.LDAPConfigurationDialog.java

License:Open Source License

/**
 * Create contents of the button bar.//from w  ww. j a v a2 s . c o m
 * @param parent
 */
@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.OK_ID, CommonMessages.get().OK, true);
    createButton(parent, IDialogConstants.CANCEL_ID, CommonMessages.get().Cancel, false);
}

From source file:com.hangum.tadpole.commons.admin.core.dialogs.SendMessageDialog.java

License:Open Source License

/**
 * Create contents of the button bar.//from  w w w. ja  v a 2s.co  m
 * @param parent
 */
@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.OK_ID, "Send", true);
    createButton(parent, IDialogConstants.CANCEL_ID, "CANCEL", false);
}

From source file:com.hangum.tadpole.commons.admin.core.dialogs.users.ModifyUserDialog.java

License:Open Source License

/**
 * Create contents of the button bar.//from ww w  . j av  a  2s.  c  o  m
 * @param parent
 */
@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, BTN_INITIALIZE_PASSWORD, Messages.get().ModifyUserDialog_19, false);
    createButton(parent, IDialogConstants.OK_ID, Messages.get().Modify, true);
    createButton(parent, IDialogConstants.CANCEL_ID, Messages.get().Cancle, false);
}

From source file:com.hangum.tadpole.commons.admin.core.dialogs.users.NewUserDialog.java

License:Open Source License

/**
 * Create contents of the button bar.//from  w w w .  j av a  2s  . c o  m
 * @param parent
 */
@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.OK_ID, Messages.get().Save, true);
    createButton(parent, IDialogConstants.CANCEL_ID, Messages.get().Cancle, false);
}

From source file:com.hangum.tadpole.commons.dialogs.fileupload.SingleFileuploadDialog.java

License:Open Source License

/**
 * Create contents of the button bar./*from  w w  w .  j  a va 2  s.c o  m*/
 * @param parent
 */
@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.OK_ID, "OK", false);
    createButton(parent, IDialogConstants.CANCEL_ID, "Cancle", false);
}

From source file:com.hangum.tadpole.engine.security.DBLockDialog.java

License:Open Source License

/**
 * Create contents of the button bar./*w  ww .  j a  v a  2  s .c  o m*/
 * @param parent
 */
@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.OK_ID, Messages.get().OK, true);
    createButton(parent, IDialogConstants.CANCEL_ID, Messages.get().Cancle, false);
}

From source file:com.hangum.tadpole.engine.security.DBPasswordAndOTPDialog.java

License:Open Source License

/**
 * Create contents of the button bar./*from ww w . java  2 s .c o m*/
 * @param parent
 */
@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.OK_ID, CommonMessages.get().Confirm, true);
    createButton(parent, IDialogConstants.CANCEL_ID, CommonMessages.get().Cancel, false);
}