List of usage examples for org.eclipse.jface.dialogs IDialogConstants CANCEL_ID
int CANCEL_ID
To view the source code for org.eclipse.jface.dialogs IDialogConstants CANCEL_ID.
Click Source Link
From source file:eu.aniketos.wp1.ststool.commitments.actions.FilterDialog.java
License:Open Source License
/** * Create contents of the button bar.// www . j a v a 2 s . c om * * @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:eu.celar.ui.dialogs.AuthTokenInfoDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(final Composite parent) { createButton(parent, IDialogConstants.CANCEL_ID, "Close", false); }
From source file:eu.esdihumboldt.hale.ui.codelist.selector.CodeListSelectionDialog.java
License:Open Source License
/** * @see Dialog#createButtonsForButtonBar(Composite) *//*from www.jav a2 s .c o m*/ @Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); createButton(parent, NONE_ID, Messages.CodeListSelectionDialog_4, //$NON-NLS-1$ false); }
From source file:eu.esdihumboldt.hale.ui.common.definition.AttributeInputDialog.java
License:Open Source License
/** * @see Dialog#createButtonsForButtonBar(Composite) *//*w ww .jav a 2s .c o m*/ @Override protected void createButtonsForButtonBar(Composite parent) { Button okButton = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); okButton.setEnabled(editor.isValid()); }
From source file:eu.geclipse.batch.ui.dialogs.BatchJobInfoDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(final Composite parent) { createButton(parent, IDialogConstants.CANCEL_ID, Messages.getString("BatchJobInfoDialog.close"), //$NON-NLS-1$ false);/* w w w.j ava 2 s . co m*/ }
From source file:eu.geclipse.core.sla.ui.dialogs.SlaTermInputDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { // create OK and Cancel buttons by default this.okButton = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
From source file:eu.geclipse.jsdl.ui.widgets.SweepDeleteDialog.java
License:Open Source License
@Override protected void buttonPressed(final int buttonId) { if (buttonId == IDialogConstants.SELECT_ALL_ID) { this.outputReturn = this.input; okPressed();/*from w ww. j av a 2 s. co m*/ } else if (buttonId == IDialogConstants.PROCEED_ID) { this.outputReturn = getSelection(); okPressed(); } else if (buttonId == IDialogConstants.CANCEL_ID) { cancelPressed(); } }
From source file:eu.geclipse.jsdl.ui.widgets.SweepDeleteDialog.java
License:Open Source License
@Override protected Control createButtonBar(final Composite parent) { Composite buttonsComp = new Composite(parent, SWT.NONE); buttonsComp.setLayout(new GridLayout(0, true)); GridData gData = new GridData(GridData.FILL_BOTH); gData.verticalIndent = 10;//from w w w. j ava 2s . c om gData.horizontalAlignment = SWT.END; buttonsComp.setLayoutData(gData); createButton(buttonsComp, IDialogConstants.SELECT_ALL_ID, Messages.getString("SweepDeleteDialog.delete_all_button"), //$NON-NLS-1$ true); createButton(buttonsComp, IDialogConstants.PROCEED_ID, Messages.getString("SweepDeleteDialog.delete_all_selected"), //$NON-NLS-1$ false); createButton(buttonsComp, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); return buttonsComp; }
From source file:eu.geclipse.ui.dialogs.AbstractSimpleTestDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(final Composite parent) { createButton(parent, IDialogConstants.CANCEL_ID, Messages.getString("PingTestDialog.closeButton"), //$NON-NLS-1$ false);/* ww w.j a v a 2s. co m*/ }
From source file:eu.geclipse.ui.dialogs.AccessControlDialog.java
License:Open Source License
/** * Create the dialog buttons. We override the superclass' method to be * able to modify the 'OK' button label if the ACL can be saved as a whole, * and presenting only a 'Done' button if the entries are saved by the * sub-dialog {@link AccessControlRuleDialog}. *///ww w.ja v a2 s .c om @Override protected void createButtonsForButtonBar(final Composite parent) { // We just change the label of the OK button String buttonText = null; if (this.canSaveWholeACL) { buttonText = Messages.getString("AccessControlDialog.save_button_text"); //$NON-NLS-1$ } else { buttonText = Messages.getString("AccessControlDialog.done_button_text"); //$NON-NLS-1$ } createButton(parent, IDialogConstants.OK_ID, buttonText, true); // Avoid having a Cancel button if there is nothing to cancel if (this.canSaveWholeACL) { createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); } }