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:com.agynamix.platform.frontend.dialogs.InputNetworkAddressDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); // super.createButtonsForButtonBar(parent); }
From source file:com.agynamix.platform.frontend.dialogs.InputTextDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.CLOSE_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); // super.createButtonsForButtonBar(parent); }
From source file:com.aliyun.odps.eclipse.template.ProjectEditorDialog.java
License:Apache License
protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
From source file:com.amalto.workbench.dialogs.AnnotationLangInfoDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
From source file:com.amalto.workbench.dialogs.AnnotationLanguageLabelsDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { super.createButtonsForButtonBar(parent); if (caller != null) { getButton(IDialogConstants.OK_ID).addSelectionListener(this.caller); getButton(IDialogConstants.CANCEL_ID).addSelectionListener(this.caller); }/*from www .j a v a 2s. c om*/ }
From source file:com.amalto.workbench.dialogs.AnnotationLanguageLabelsDialog.java
License:Open Source License
@Override protected void cancelPressed() { setReturnCode(CANCEL);// w w w . j av a 2s . c o m getButton(IDialogConstants.CANCEL_ID).setData("dialog", AnnotationLanguageLabelsDialog.this);//$NON-NLS-1$ // no close let Action Handler handle it if (caller == null) { close(); } }
From source file:com.amalto.workbench.dialogs.AnnotationOrderedListsDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { super.createButtonsForButtonBar(parent); getButton(IDialogConstants.OK_ID).addSelectionListener(this.caller); getButton(IDialogConstants.CANCEL_ID).addSelectionListener(this.caller); }
From source file:com.amalto.workbench.dialogs.AnnotationOrderedListsDialog.java
License:Open Source License
@Override protected void cancelPressed() { setReturnCode(CANCEL);/* w ww.ja v a2 s . co m*/ getButton(IDialogConstants.CANCEL_ID).setData("dialog", AnnotationOrderedListsDialog.this);//$NON-NLS-1$ // no close let Action Handler handle it }
From source file:com.amalto.workbench.dialogs.datacontainer.UpdateAutoIncrementDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { resetBtn = createButton(parent, resetBtnId, Messages.UpdateAutoIncrementDialog_Reset, false); resetBtn.setEnabled(false);/*www. ja va 2s.c o m*/ GridDataFactory.fillDefaults().align(SWT.BEGINNING, SWT.CENTER).applyTo(resetBtn); Button resetAllBtn = createButton(parent, resetAllBtnId, Messages.UpdateAutoIncrementDialog_resetAll, false); GridDataFactory.fillDefaults().align(SWT.BEGINNING, SWT.CENTER).applyTo(resetAllBtn); Composite rightArea = new Composite(parent, SWT.NONE); GridLayoutFactory.fillDefaults().numColumns(0).equalWidth(true).applyTo(rightArea); GridDataFactory.fillDefaults().align(SWT.END, SWT.CENTER).grab(true, false).applyTo(rightArea); createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
From source file:com.amalto.workbench.dialogs.DataModelFilterDialog.java
License:Open Source License
@Override protected Control createButtonBar(Composite parent) { Composite composite = (Composite) super.createDialogArea(parent); composite.setBackground(composite.getDisplay().getSystemColor(SWT.COLOR_WHITE)); createButton(composite, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(composite, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); return composite; }