List of usage examples for org.eclipse.jface.dialogs IDialogConstants CANCEL_ID
int CANCEL_ID
To view the source code for org.eclipse.jface.dialogs IDialogConstants CANCEL_ID.
Click Source Link
From source file:ch.netcetera.eclipse.workspaceconfig.ui.dialog.WorkspacePrefercensRecorderResultDialog.java
License:Open Source License
/** {@inheritDoc} */ @Override/*from w w w. j av a 2s. c o m*/ 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(""); }/*from w w w . j a v a 2 s . c o m*/ }); createButton(parent, IDialogConstants.OK_ID, "&Login", true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
From source file:cn.com.sky.hyperbola.LoginDialog.java
License:Open Source License
protected void buttonPressed(int buttonId) { if (buttonId == IDialogConstants.OK_ID || buttonId == IDialogConstants.CANCEL_ID) saveDescriptors();// www .ja v a 2s .co m super.buttonPressed(buttonId); }
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); }
From source file:cn.edu.pku.ogeditor.dialogs.RelationFilterDialog.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); }
From source file:cn.edu.xmu.tidems.control.ui.views.components.MzCalibrationDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(final Composite parent) { createButton(parent, IDialogConstants.OK_ID, "Calibrate", true); createButton(parent, IDialogConstants.CANCEL_ID, "Cancel", false); // parent.pack(); }
From source file:cn.ieclipse.adt.ext.helpers.MultiCheckSelector.java
License:Apache License
/** * Create contents of the button bar.//from w ww . j a va2 s . c om * * @param parent */ @Override protected void createButtonsForButtonBar(Composite parent) { Button ok = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); // ok.addSelectionListener(new SelectionAdapter() { // @Override // public void widgetSelected(SelectionEvent e) { // // } // }); Button cancel = createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); cancel.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { if (callback != null) { callback.onClose(); } } }); }
From source file:cn.ieclipse.aorm.eclipse.helpers.MultiCheckSelector.java
License:Apache License
/** * Create contents of the button bar./* w w w . jav a2 s . c om*/ * * @param parent */ @Override protected void createButtonsForButtonBar(Composite parent) { Button ok = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); ok.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { if (callback != null) { List<String> sel = getSelection(); callback.onOkay(sel); } } }); Button cancel = createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); cancel.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { if (callback != null) { callback.onClose(); } } }); }
From source file:cn.ieclipse.pde.signer.wizard.KeyAliasDialog.java
License:Apache License
/** * Create contents of the button bar.//w w w . j a v a2 s . co m * * @param parent */ @Override protected void createButtonsForButtonBar(Composite parent) { if (this.item != null) { createButton(parent, IDialogConstants.RETRY_ID, "&Delete", false); createButton(parent, IDialogConstants.IGNORE_ID, "&Export", true); } else { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); } createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
From source file:com.actuate.development.tool.dialog.ErrorLogDialog.java
License:Open Source License
protected Control createButtonBar(Composite parent) { Control control = super.createButtonBar(parent); if (getButton(IDialogConstants.OK_ID) != null) { getButton(IDialogConstants.OK_ID).setText("OK"); }//from ww w . j a v a 2 s . com if (getButton(IDialogConstants.CANCEL_ID) != null) { getButton(IDialogConstants.CANCEL_ID).setText("Cancel"); } return control; }