List of usage examples for org.eclipse.jface.dialogs IDialogLabelKeys CANCEL_LABEL_KEY
String CANCEL_LABEL_KEY
To view the source code for org.eclipse.jface.dialogs IDialogLabelKeys CANCEL_LABEL_KEY.
Click Source Link
From source file:de.bht.fpa.mail.s000000.common.filter.FilterDialog.java
License:Open Source License
/** * Create contents of the button bar.// w w w . j av a 2 s . co m * * @param parent */ @Override protected void createButtonsForButtonBar(Composite parent) { String ok = JFaceResources.getString(IDialogLabelKeys.OK_LABEL_KEY); String cancel = JFaceResources.getString(IDialogLabelKeys.CANCEL_LABEL_KEY); createButton(parent, IDialogConstants.OK_ID, ok, true); createButton(parent, IDialogConstants.CANCEL_ID, cancel, false); }
From source file:org.adichatz.widget.richText.HyperlinkDialog.java
License:CeCILL license
protected void createButtonsForButtonBar(Composite parent) { okButton = createButton(parent, IDialogConstants.OK_ID, JFaceResources.getString(IDialogLabelKeys.OK_LABEL_KEY), true); okButton.setEnabled(false);/*w w w .ja va 2 s .c o m*/ createButton(parent, IDialogConstants.CANCEL_ID, JFaceResources.getString(IDialogLabelKeys.CANCEL_LABEL_KEY), false); }
From source file:org.eclipse.e4.ui.workbench.swt.internal.copy.ShowViewDialog.java
License:Open Source License
/** * Adds buttons to this dialog's button bar. * <p>/* w w w . j ava 2 s.c om*/ * The default implementation of this framework method adds standard ok and * cancel buttons using the <code>createButton</code> framework method. * Subclasses may override. * </p> * * @param parent * the button bar composite */ protected void createButtonsForButtonBar(Composite parent) { okButton = createButton(parent, IDialogConstants.OK_ID, JFaceResources.getString(IDialogLabelKeys.OK_LABEL_KEY), true); createButton(parent, IDialogConstants.CANCEL_ID, JFaceResources.getString(IDialogLabelKeys.CANCEL_LABEL_KEY), false); updateButtons(); }
From source file:org.eclipse.emf.ecp.internal.ui.dialogs.PropertiesDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, JFaceResources.getString(IDialogLabelKeys.OK_LABEL_KEY), true); if (editable) { createButton(parent, IDialogConstants.CANCEL_ID, JFaceResources.getString(IDialogLabelKeys.CANCEL_LABEL_KEY), false); }/*from w w w . ja va 2 s . c o m*/ }
From source file:org.netxms.ui.eclipse.tools.MessageDialogHelper.java
License:Open Source License
/** * Convenience method to open a simple confirm (OK/Cancel) dialog with a check box * to remember selection. /*from w w w .j a va2s . co m*/ * * @param parent the parent shell of the dialog, or <code>null</code> if none * @param title the dialog's title, or <code>null</code> if none * @param label the label for the check box * @param message the message * @return */ public static DialogData openConfirmWithCheckbox(Shell parent, String title, String label, String message) { MessageDialogWithCheckbox msg = new MessageDialogWithCheckbox(MessageDialog.CONFIRM, new String[] { JFaceResources.getString(IDialogLabelKeys.OK_LABEL_KEY), JFaceResources.getString(IDialogLabelKeys.CANCEL_LABEL_KEY) }, parent, title, label, message); return msg.openMsg(); }
From source file:org.netxms.ui.eclipse.tools.MessageDialogHelper.java
License:Open Source License
/** * Convenience method to open a standard warning dialog with a check box * to remember selection. /*from ww w .j ava2 s . c om*/ * * @param parent the parent shell of the dialog, or <code>null</code> if none * @param title the dialog's title, or <code>null</code> if none * @param label the label for the check box * @param message the message * @return */ public static DialogData openWarningWithCheckbox(Shell parent, String title, String label, String message) { MessageDialogWithCheckbox msg = new MessageDialogWithCheckbox(MessageDialog.WARNING, new String[] { JFaceResources.getString(IDialogLabelKeys.OK_LABEL_KEY), JFaceResources.getString(IDialogLabelKeys.CANCEL_LABEL_KEY) }, parent, title, label, message); return msg.openMsg(); }