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:nexcore.tool.uml.ui.project.explorer.dialog.FragmentSaveDialog.java
License:Open Source License
/** * @see org.eclipse.jface.dialogs.Dialog#createButtonsForButtonBar(org.eclipse.swt.widgets.Composite) *//*from w w w. j av a2 s . c om*/ 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:nl.utwente.ce.imageexport.ExceptionErrorDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { // create OK and Details buttons createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, IDialogConstants.SHOW_DETAILS_LABEL, false);//w ww . j a va 2s.co m }
From source file:no.itpr.parser.handlers.internal.FileDialog.java
License:Open Source License
public FileDialog(Shell parentShell, File selectedFile) { super(parentShell, selectedFile.getName(), null, "Filename " + selectedFile.getName(), INFORMATION, new String[] { IDialogConstants.OK_LABEL }, 0); this.selectedFile = selectedFile; parser = new FileParser(selectedFile.getAbsolutePath(), this.selectedFile); }
From source file:no.itpr.parser.handlers.internal.TimeZoneDialog.java
License:Open Source License
public TimeZoneDialog(Shell parentShell, TimeZone timeZone) { super(parentShell, timeZone.getID(), null, "Time Zone " + timeZone.getID(), INFORMATION, new String[] { IDialogConstants.OK_LABEL }, 0); this.timeZone = timeZone; }
From source file:no.javatime.inplace.ui.dialogs.DependencyDialog.java
License:Open Source License
/** * Create a default, cancel and ok button in the button bar. * @param parent the title area dialog/*from w w w.j a v a 2s . com*/ */ @Override protected void createButtonsForButtonBar(Composite parent) { Button btnDefault = createButton(parent, DEFAULT_ID, DEAFAULT_LABEL, false); btnDefault.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { defaultDependencies(); } }); createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); Button btnCancel = createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); btnCancel.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { cancel(); } }); }
From source file:oic.simulator.clientcontroller.view.dialogs.ResourceWizardDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { super.createButtonsForButtonBar(parent); Button finishButton = getButton(IDialogConstants.FINISH_ID); if (finishButton != null) { finishButton.setText(IDialogConstants.OK_LABEL); }/*ww w . j a va 2 s . c o m*/ }
From source file:org.acoveo.callcenter.sipclient.view.TransferDialog.java
License:Open Source License
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, Messages.TransferDialog_3, false); // do this here because setting the text will set enablement on the ok // button/*from w ww . j a v a 2 s.co m*/ text.setFocus(); if (value != null) { text.setText(value); text.selectAll(); } }
From source file:org.apache.directory.studio.aciitemeditor.dialogs.ACIItemDialog.java
License:Apache License
/** * @see org.eclipse.jface.dialogs.Dialog#createButtonsForButtonBar(org.eclipse.swt.widgets.Composite) *//*from w ww .jav a 2 s . c om*/ protected void createButtonsForButtonBar(Composite parent) { createButton(parent, FORMAT_BUTTON, Messages.getString("ACIItemDialog.button.format"), false); //$NON-NLS-1$ createButton(parent, CHECK_SYNTAX_BUTTON, Messages.getString("ACIItemDialog.button.checkSyntax"), false); //$NON-NLS-1$ createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, false); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
From source file:org.apache.directory.studio.aciitemeditor.dialogs.MultiValuedDialog.java
License:Apache License
/** * {@inheritDoc}/* w ww . j a v a 2 s . c o m*/ * * Creates only a OK button. */ protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, false); }
From source file:org.apache.directory.studio.common.ui.CommonUIUtils.java
License:Apache License
/** * Opens an Error {@link MessageDialog} with the given title and message. * * @param title the title//from www. j av a2 s. c om * @param message the message */ public static void openErrorDialog(String title, String message) { MessageDialog dialog = new MessageDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), title, null, message, MessageDialog.ERROR, new String[] { IDialogConstants.OK_LABEL }, MessageDialog.OK); dialog.open(); }