Example usage for org.eclipse.jface.dialogs IDialogConstants OK_LABEL

List of usage examples for org.eclipse.jface.dialogs IDialogConstants OK_LABEL

Introduction

In this page you can find the example usage for org.eclipse.jface.dialogs IDialogConstants OK_LABEL.

Prototype

String OK_LABEL

To view the source code for org.eclipse.jface.dialogs IDialogConstants OK_LABEL.

Click Source Link

Document

The label for OK buttons.

Usage

From source file:au.gov.ga.earthsci.application.about.AboutDialog.java

License:Apache License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
}

From source file:au.gov.ga.earthsci.catalog.ui.handler.BrowseInputDialog.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/* w w w .  ja va 2s. c  o m*/
    text.setFocus();
    if (value != null) {
        text.setText(value);
        text.selectAll();
    }
}

From source file:au.gov.ga.earthsci.discovery.csw.CSWURLSelectionDialog.java

License:Apache 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);
    validate();/*w  ww  . ja  v a  2 s .  c  o m*/
}

From source file:aurora.ide.helpers.StatusDialog.java

License:Open Source License

protected void createButtonsForButtonBar(Composite parent) {
    // create OK and Details buttons
    createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
    createDetailsButton(parent);//  w  w  w.j  a v  a2s  .com
}

From source file:bndtools.release.ErrorDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    // create OK button only
    createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
}

From source file:br.puc.molic.diagram.multiline.InputDialog.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 ww  .ja v a2  s. co  m*/
    text.setFocus();
    if (value != null) {
        text.setText(value);
        text.selectAll();
    }
}

From source file:br.ufmg.dcc.tabuleta.ui.FilterDialog.java

License:Open Source License

/**
 * Creates the filter dialog./* w  ww  .ja v  a  2  s .  co  m*/
 * @param pParentShell The parent shell for this dialog
 */
public FilterDialog(Shell pParentShell) {
    super(pParentShell, Tabuleta.getResourceString("views.ConcernMapperView.FilterDialogTitle"), null,
            Tabuleta.getResourceString("ui.ConcernMapperPreferencePage.FilterThreshold"), 0,
            new String[] { IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL }, 0,
            Tabuleta.getResourceString("ui.ConcernMapperPreferencePage.FilterEnabled"), Tabuleta.getDefault()
                    .getPreferenceStore().getBoolean(ConcernMapperPreferencePage.P_FILTER_ENABLED));
}

From source file:ca.uvic.cs.tagsea.dialogs.RefreshTagsDialog.java

License:Open Source License

/**
 * Creates a new RefreshTagsDialog dialog.
 * /*from www  .j  ava2 s  .co m*/
 * @param window the window to create it in
 * @param selection the currently selected projects (may be empty)
 */
public RefreshTagsDialog(IWorkbenchWindow window, IProject[] selection) {
    super(window.getShell(), "Synchronize @tag database...", null, getQuestion(), QUESTION,
            new String[] { IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL }, 0);
    this.selection = selection;
    if (this.selection == null) {
        this.selection = new Object[0];
    }
    setShellStyle(SWT.RESIZE | getShellStyle());

    setDefaultImage(TagSEAPlugin.getDefault().getTagseaImages().getImage(ITagseaImages.IMG_WAYPOINT));
}

From source file:ch.elexis.core.ui.contacts.dialogs.AdvancedFilterDialog.java

License:Open Source License

/**
 * Create contents of the button bar.//from   ww w.j a  v  a 2 s. c  o  m
 * 
 * @param parent
 */
@Override
protected void createButtonsForButtonBar(Composite parent) {
    Button button_1 = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
    button_1.setText("Filter anwenden");
    Button btnAbbrechen = createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL,
            false);
    btnAbbrechen.setText("Abbrechen");
}

From source file:ch.elexis.core.ui.importer.div.importers.dialog.QueryOverwriteDialog.java

License:Open Source License

/**
 * Create contents of the button bar.//from   ww w. j  a v  a2  s .c o  m
 * 
 * @param parent
 */
@Override
protected void createButtonsForButtonBar(Composite parent) {
    Button buttonNo = createButton(parent, IDialogConstants.NO_ID, IDialogConstants.OK_LABEL, true);
    buttonNo.setText(Messages.QueryOverwriteDialog_NO);
    Button buttonYesToAll = createButton(parent, IDialogConstants.YES_TO_ALL_ID, IDialogConstants.CANCEL_LABEL,
            false);
    buttonYesToAll.setText(Messages.QueryOverwriteDialog_YESTOALL);
    Button buttonYes = createButton(parent, IDialogConstants.YES_ID, IDialogConstants.CANCEL_LABEL, false);
    buttonYes.setText(Messages.QueryOverwriteDialog_YES);
}