List of usage examples for org.eclipse.jface.dialogs IDialogConstants CANCEL_LABEL
String CANCEL_LABEL
To view the source code for org.eclipse.jface.dialogs IDialogConstants CANCEL_LABEL.
Click Source Link
From source file:com.amalto.workbench.dialogs.DataModelFilterDialog.java
License:Open Source License
@Override protected Control createButtonBar(Composite parent) { Composite composite = (Composite) super.createDialogArea(parent); composite.setBackground(composite.getDisplay().getSystemColor(SWT.COLOR_WHITE)); createButton(composite, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(composite, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); return composite; }
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); // /*/* www. ja va 2 s. c o m*/ // 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/*from w w w .j av a 2s .com*/ 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.MissingJarDialog.java
License:Open Source License
/** * Create contents of the button bar./* w w w. java 2s. co m*/ * * @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.ViewInputDialog.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//from ww w . j ava2s.com okButton.setEnabled(false); }
From source file:com.amalto.workbench.editors.DataClusterDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { Button okBtn = createButton(parent, Dialog.OK, okLabel != null ? okLabel : IDialogConstants.OK_LABEL, false);//from ww w .j a v a2 s .c o m createButton(parent, Dialog.CANCEL, cancelLabel != null ? cancelLabel : IDialogConstants.CANCEL_LABEL, false); if (additionSelectionListener != null) { okBtn.addSelectionListener(additionSelectionListener); } }
From source file:com.amalto.workbench.editors.dialog.ConfirmFireEventMessageDialog.java
License:Open Source License
static String[] getButtonLabels(int kind) { String[] dialogButtonLabels;//from w w w.java 2 s .c o m switch (kind) { case ERROR: case INFORMATION: case WARNING: { dialogButtonLabels = new String[] { IDialogConstants.OK_LABEL }; break; } case CONFIRM: { dialogButtonLabels = new String[] { IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL }; break; } case QUESTION: { dialogButtonLabels = new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }; break; } case QUESTION_WITH_CANCEL: { dialogButtonLabels = new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL }; break; } default: { throw new IllegalArgumentException("Illegal value for kind in MessageDialog.open()"); //$NON-NLS-1$ } } return dialogButtonLabels; }
From source file:com.amalto.workbench.editors.dialog.CustomInputDialog.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/*from www . j a va2s .c o m*/ text.setFocus(); if (value != null) { text.setText(value); text.selectAll(); } }