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

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

Introduction

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

Prototype

String CANCEL_LABEL

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

Click Source Link

Document

The label for cancel buttons.

Usage

From source file:bndtools.release.BundleReleaseDialog.java

License:Open Source License

@Override
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, UPDATE_RELEASE_BUTTON, Messages.updateVersionsAndRelease, true);
    createButton(parent, UPDATE_BUTTON, Messages.updateVersions, false);
    createButton(parent, CANCEL_BUTTON, IDialogConstants.CANCEL_LABEL, false);
}

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  .j  a va2  s.com*/
    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./* ww  w  .  java2  s  .  c o  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  w  w w.  j av  a  2s.  c  om
 * @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:ca.uvic.cs.tagsea.research.UserIDDialog.java

License:Open Source License

protected void createButtonsForButtonBar(Composite parent) {
    okay = createButton(parent, IDialogConstants.OK_ID, "Get ID", true);
    // create OK and Cancel buttons by default
    finish = createButton(parent, IDialogConstants.FINISH_ID, IDialogConstants.FINISH_LABEL, false);
    cancel = createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
    finish.setEnabled(false);/* www  .  java2s  .  c  om*/
}

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

License:Open Source License

/**
 * Create contents of the button bar./* ww w  .ja  v  a  2  s .  co  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  w w  w. ja v  a 2  s  .  c om
 * 
 * @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);
}

From source file:ch.netcetera.eclipse.workspaceconfig.ui.dialog.WorkspacePrefercensRecorderResultDialog.java

License:Open Source License

/** {@inheritDoc} */
@Override/*  w  ww .  j a  v a  2 s.  c om*/
protected void createButtonsForButtonBar(Composite parent) {
    createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
}

From source file:cn.com.sky.hyperbola.LoginDialog.java

License:Open Source License

protected void createButtonsForButtonBar(Composite parent) {
    Button removeCurrentUser = createButton(parent, IDialogConstants.CLIENT_ID, "&Delete User", false);
    removeCurrentUser.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(SelectionEvent e) {
            savedDetails.remove(userIdText.getText());
            initializeUsers("");
        }//w  w  w  .  j av  a 2s .co m
    });
    createButton(parent, IDialogConstants.OK_ID, "&Login", true);
    createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);

}

From source file:cn.edu.pku.ogeditor.dialogs.ConceptFilterDialog.java

License:Open Source License

protected void createButtonsForButtonBar(Composite parent) {
    // TODO Auto-generated method stub
    // super.createButtonsForButtonBar(parent);
    createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
    createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);

}