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.nokia.carbide.cpp.uiq.ui.vieweditor.ActionsLayoutsDialog.java
License:Open Source License
/** * Create contents of the button bar/*w w w . jav a 2 s. c o m*/ * @param parent */ protected void createButtonsForButtonBar(Composite parent) { System.currentTimeMillis(); button = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); if (error) { button.setEnabled(false); } }
From source file:com.nokia.carbide.cpp.uiq.ui.vieweditor.ActionsUIConfigDialog.java
License:Open Source License
/** * Create contents of the button bar/*from ww w . j a va2s.c o m*/ * @param parent */ protected void createButtonsForButtonBar(Composite parent) { System.currentTimeMillis(); button = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); if (error) { button.setEnabled(false); } else { button.setEnabled(true); } }
From source file:com.nokia.carbide.cpp.uiq.ui.vieweditor.LayoutsDialog.java
License:Open Source License
/** * Create contents of the button bar//www.j a v a2s.c o m * @param parent */ protected void createButtonsForButtonBar(Composite parent) { System.currentTimeMillis(); button = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); if (error) { button.setEnabled(false); } else { button.setEnabled(true); } }
From source file:com.nokia.carbide.internal.updater.ui.ProjectUpdateDialog.java
License:Open Source License
/** * Create contents of the button bar (change OK to Update) * @param parent//from ww w .java 2 s . c om */ @Override protected void createButtonsForButtonBar(Composite parent) { Button ok = createButton(parent, IDialogConstants.OK_ID, Messages.getString("ProjectUpdateDialog.UpdateButtonTitle"), true); //$NON-NLS-1$ ok.setToolTipText(Messages.getString("ProjectUpdateDialog.OkButtonTooltip")); //$NON-NLS-1$ Button skip = createButton(parent, IDialogConstants.NEXT_ID, Messages.getString("ProjectUpdateDialog.SkipButtonTitle"), false); //$NON-NLS-1$ skip.setToolTipText(Messages.getString("ProjectUpdateDialog.SkipButtonTooltip")); //$NON-NLS-1$ Button cancel = createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); cancel.setToolTipText(Messages.getString("ProjectUpdateDialog.CancelButtonTooltip")); //$NON-NLS-1$ updateEnabled(); }
From source file:com.nokia.carbide.search.system.internal.ui.text.ReplaceDialog2.java
License:Open Source License
private int askForSkip(final IFileStore file) { String message = Messages.format(SearchMessages.ReadOnlyDialog_message, getFullPath(file).toString()); String[] buttonLabels = null; boolean showSkip = countResources() > 1; if (showSkip) { String skipLabel = SearchMessages.ReadOnlyDialog_skipFile; String skipAllLabel = SearchMessages.ReadOnlyDialog_skipAll; buttonLabels = new String[] { skipLabel, skipAllLabel, IDialogConstants.CANCEL_LABEL }; } else {/*from w w w .j av a2 s .c o m*/ buttonLabels = new String[] { IDialogConstants.CANCEL_LABEL }; } MessageDialog msd = new MessageDialog(getShell(), getShell().getText(), null, message, MessageDialog.ERROR, buttonLabels, 0); int rc = msd.open(); switch (rc) { case 0: return showSkip ? SKIP_FILE : CANCEL; case 1: return SKIP_ALL; default: return CANCEL; } }
From source file:com.nokia.carbide.search.system.internal.ui.util.ExtendedDialogWindow.java
License:Open Source License
/** * Add buttons to the dialog's button bar. * * Subclasses may override.//from www . java2 s .c o m * * @param parent the button bar composite */ protected void createButtonsForButtonBar(Composite parent) { fCancelButton = createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
From source file:com.nokia.carbide.search.system2.internal.ui.SearchHistorySelectionDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OPEN_LABEL, true); createButton(parent, IDialogConstants.OPEN_ID, SearchMessages.SearchHistorySelectionDialog_open_in_new_button, false); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
From source file:com.nokia.cpp.internal.api.utils.ui.FilesListDialog.java
License:Open Source License
private FilesListDialog(Shell parentShell, List<IFile> filesList, String title, String caption, int style) { super(parentShell); setShellStyle(style);//from w w w . j a v a 2 s.c o m this.filesList = filesList; this.title = title; this.caption = caption; this.okButtonLabel = IDialogConstants.OK_LABEL; this.cancelButtonLabel = IDialogConstants.CANCEL_LABEL; }
From source file:com.nokia.cpp.internal.api.utils.ui.QueryWithBooleanPrefDialog.java
License:Open Source License
/** * Create the dialog/*from w ww.ja v a2 s. com*/ * @param parentShell parent of the dialog, null for default * @param title the dialog title, required * @param prompt the prompt text, required * @param plugin the plugin owning the preference, required * @param prefName the name of the boolean preference, required * @param valueToSkipDialog the boolean preference value which corresponds to * skipping the dialog. */ public QueryWithBooleanPrefDialog(Shell parentShell, String title, String prompt, AbstractUIPlugin plugin, String prefName, boolean valueToSkipDialog) { preferences = plugin.getPreferenceStore(); dialog = new MessageDialogWithToggle(parentShell, title, null, prompt, MessageDialog.INFORMATION, new String[] { IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL }, 0, null, preferences.getBoolean(prefName) == valueToSkipDialog); this.prefName = prefName; this.valueToSkipDialog = valueToSkipDialog; }
From source file:com.nokia.s60ct.quickfixers.QuickFixPopupDialog.java
License:Open Source License
public QuickFixPopupDialog(Shell parentShell, IMarker[] markers) { super(parentShell, "Quick fixes availeble", null, "Validation errors/warnings have quick fixes available.\nSelect items that you want to fix automatically.", MessageDialog.INFORMATION, new String[] { "Fix", IDialogConstants.CANCEL_LABEL }, 0); this.markers = markers; checkedElements = markers;/*from w w w . j a va 2 s.c o m*/ }