List of usage examples for org.eclipse.jface.dialogs IDialogConstants OK_LABEL
String OK_LABEL
To view the source code for org.eclipse.jface.dialogs IDialogConstants OK_LABEL.
Click Source Link
From source file:com.nokia.cpp.internal.api.utils.ui.QueryWithBooleanPrefDialog.java
License:Open Source License
/** * Create the dialog//from ww w .jav a 2 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.s60tools.analyzetool.internal.ui.graph.GraphSettingsDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { okButton = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
From source file:com.nokia.s60tools.creator.dialogs.AbstractDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { // Creating just OK button createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, true); }
From source file:com.nokia.s60tools.creator.job.WatchDeviceInformationDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { GridLayout gdl = new GridLayout(1, false); GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_CENTER); parent.setLayout(gdl);//from ww w. j a v a 2 s . co m parent.setLayoutData(gd); createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); }
From source file:com.nokia.s60tools.hticonnection.ui.dialogs.ErrorDialogWithHelp.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { // Creating Ok button. if ((style & SWT.OK) == SWT.OK) { okButton = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, false); okButton.addSelectionListener(this); PlatformUI.getWorkbench().getHelpSystem().setHelp(okButton, DEFAULT_CONTEXT_HELP); }//from www . j ava 2 s . co m // Creating Yes button if ((style & SWT.YES) == SWT.YES) { yesButton = createButton(parent, IDialogConstants.YES_ID, IDialogConstants.YES_LABEL, true); yesButton.addSelectionListener(this); PlatformUI.getWorkbench().getHelpSystem().setHelp(yesButton, DEFAULT_CONTEXT_HELP); } //Creating No button if ((style & SWT.NO) == SWT.NO) { noButton = createButton(parent, IDialogConstants.NO_ID, IDialogConstants.NO_LABEL, false); noButton.addSelectionListener(this); PlatformUI.getWorkbench().getHelpSystem().setHelp(noButton, DEFAULT_CONTEXT_HELP); } }
From source file:com.nokia.s60tools.imaker.internal.dialogs.ProductSelectionDialog.java
License:Open Source License
public ProductSelectionDialog(Shell parentShell, IEnvironment env) { super(parentShell, "Select product", null, // accept // the // default // window // icon "The following products are available\n", QUESTION, new String[] { IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL }, 0); this.activeEnvironment = env; }
From source file:com.nokia.s60tools.memspy.ui.dialogs.SWMTCategoriesDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, true); okActionBtn = getButton(IDialogConstants.OK_ID); }
From source file:com.nokia.s60tools.metadataeditor.dialogs.AddLibraryDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { // Creating just OK button createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); Button ok = getButton(IDialogConstants.OK_ID); ok.setEnabled(false);/*from www. j a v a2 s. co m*/ }
From source file:com.nokia.s60tools.remotecontrol.ui.dialogs.DriveNameDialog.java
License:Open Source License
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).setFocus(); }
From source file:com.nokia.s60tools.remotecontrol.ui.dialogs.FolderNameDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); Button ok = getButton(IDialogConstants.OK_ID); ok.setEnabled(false);//from w w w . j a v a2 s . com }