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:de.babe.eclipse.plugins.quickREx.dialogs.OrganizeTestTextDialog.java
License:Open Source License
private void createButtonsForLoad(Composite parent) { createButton(parent, BROWSE_BUTTON_ID, Messages.getString("dialogs.OrganizeTestTextDialog.button.browse"), //$NON-NLS-1$ false);//w w w.ja v a2s.c o m createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
From source file:de.babe.eclipse.plugins.quickREx.dialogs.OrganizeTestTextDialog.java
License:Open Source License
private void createButtonsForOrganize(Composite parent) { createButton(parent, DELETE_BUTTON_ID, Messages.getString("dialogs.OrganizeTestTextDialog.button.delete"), //$NON-NLS-1$ false);//w w w . ja v a 2s. c om createButton(parent, IDialogConstants.CANCEL_ID, Messages.getString("dialogs.OrganizeTestTextDialog.button.close"), true); //$NON-NLS-1$ }
From source file:de.babe.eclipse.plugins.quickREx.dialogs.SimpleTextDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.CANCEL_ID, Messages.getString("dialogs.SimpleTextDialog.button.close"), true); //$NON-NLS-1$ }
From source file:de.bht.fpa.mail.s000000.common.filter.FilterDialog.java
License:Open Source License
/** * Create contents of the button bar.// ww w . j a v a 2 s . c o m * * @param parent */ @Override protected void createButtonsForButtonBar(Composite parent) { String ok = JFaceResources.getString(IDialogLabelKeys.OK_LABEL_KEY); String cancel = JFaceResources.getString(IDialogLabelKeys.CANCEL_LABEL_KEY); createButton(parent, IDialogConstants.OK_ID, ok, true); createButton(parent, IDialogConstants.CANCEL_ID, cancel, false); }
From source file:de.blizzy.backup.ErrorsDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, CLEAR_ID, Messages.Button_ClearErrors, false); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CLOSE_LABEL, true); }
From source file:de.blizzy.backup.ErrorsDialog.java
License:Open Source License
@Override protected void buttonPressed(int buttonId) { if (buttonId == CLEAR_ID) { clearErrors = true;//from ww w. j a va2s . c o m buttonId = IDialogConstants.CANCEL_ID; } super.buttonPressed(buttonId); }
From source file:de.blizzy.backup.restore.RestoreDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CLOSE_LABEL, false); }
From source file:de.bmw.yamaica.ea.ui.EAElementSelectionDialog.java
License:Mozilla Public License
@Override protected Control createDialogArea(Composite parent) { getShell().setText(EA_ELEMENT_SELECTION); Composite area = (Composite) super.createDialogArea(parent); label = new Label(area, SWT.WRAP); label.setText(RESOURCE_SELECTION_MESSAGE); eaPathText = new Text(area, SWT.SINGLE | SWT.BORDER); GridData textGridData = new GridData(GridData.FILL_HORIZONTAL); textGridData.widthHint = 320;/* www . j a v a 2 s . co m*/ eaPathText.setLayoutData(textGridData); eaPathText.addModifyListener(this); EAContentProvider contentProvider = new EAContentProvider(); EALabelProvider labelProvider = new EALabelProvider(); EAComparer comparer = new EAComparer(); GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true); gridData.widthHint = 320; gridData.heightHint = 300; ViewerToolBar viewerToolBar = new ViewerToolBar(area, SWT.BORDER, ViewerToolBar.DRILL_DOWN | ViewerToolBar.REFRESH); viewerToolBar.setLayoutData(gridData); treeViewer = new TreeViewer(viewerToolBar, SWT.NONE); treeViewer.setContentProvider(contentProvider); treeViewer.setLabelProvider(labelProvider); treeViewer.setComparator(comparer); treeViewer.setUseHashlookup(true); treeViewer.addSelectionChangedListener(this); treeViewer.addDoubleClickListener(this); viewerToolBar.setViewer(treeViewer); progressMonitorPart = new ProgressMonitorPart(parent, new GridLayout(), true); progressMonitorPart.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); progressMonitorPart.attachToCancelComponent(getButton(IDialogConstants.CANCEL_ID)); Label separator = new Label(parent, SWT.HORIZONTAL | SWT.SEPARATOR); separator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); setWidgetEnablements(false); applyDialogFont(progressMonitorPart); getShell().getDisplay().asyncExec(this); return dialogArea; }
From source file:de.byteholder.geoclipse.map.DialogManageOfflineImages.java
License:Open Source License
@Override protected void createButtonsForButtonBar(final Composite parent) { // create close button createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CLOSE_LABEL, false); }
From source file:de.femodeling.e4.ui.progress.internal.ProgressMonitorFocusJobDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { Button runInWorkspace = createButton(parent, IDialogConstants.CLOSE_ID, ProgressMessages.ProgressMonitorFocusJobDialog_RunInBackgroundButton, true); runInWorkspace.addSelectionListener(new SelectionAdapter() { /*// w w w.ja v a2 s . co m * (non-Javadoc) * * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent e) { Rectangle shellPosition = getShell().getBounds(); job.setProperty(IProgressConstants.PROPERTY_IN_DIALOG, Boolean.FALSE); finishedRun(); ProgressManagerUtil.animateDown(shellPosition); } }); runInWorkspace.setCursor(arrowCursor); cancel = createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); cancel.setCursor(arrowCursor); createDetailsButton(parent); }