List of usage examples for org.eclipse.jface.dialogs IDialogConstants CANCEL_LABEL
String CANCEL_LABEL
To view the source code for org.eclipse.jface.dialogs IDialogConstants CANCEL_LABEL.
Click Source Link
From source file:gov.va.isaac.mdht.otf.ui.properties.PrimitiveInputDialog.java
License:Apache License
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 .j a v a2 s. co m*/ text.setFocus(); if (valueString != null) { text.setText(valueString); text.selectAll(); } }
From source file:gr.aueb.dmst.istlab.unixtools.views.preferences.PreferencesTableView.java
public String handleImportButton() { String filename = null;//w ww . j av a 2 s . co m // ask the user if he/she wants to overwrite the existing table MessageDialog messageDialog = new MessageDialog(getShell(), "Import commands", null, PropertiesLoader.CUSTOM_COMMAND_PAGE_IMPORT_MESSAGE, MessageDialog.QUESTION_WITH_CANCEL, new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL }, 0); if (messageDialog.open() == MessageDialog.OK) { // User has selected to open a single file FileDialog fileDialog = new FileDialog(getShell(), SWT.OPEN); filename = fileDialog.open(); } return filename; }
From source file:hierarchyviewerlib.uicomponents.iQueryCreatorDialog.java
License:GNU General Public 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) { //createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, // true); Button cancelButton = createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); cancelButton.setText(CustomString.getString("LABEL_IQUERY_CLOSE")); }
From source file:hydrograph.ui.dataviewer.dialog.SelectColumnActionDialog.java
License:Apache License
@Override protected void createButtonsForButtonBar(Composite parent) { okButton = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); if (listSelectedColumns.getItemCount() == 0) { okButton.setEnabled(false);/* w w w. ja v a2 s . c om*/ } createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
From source file:hydrograph.ui.dataviewer.preferencepage.ViewDataPreferencesDialog.java
License:Apache License
/** * Create contents of the button bar.//w ww . j a v a 2 s . c om * * @param parent */ @Override protected void createButtonsForButtonBar(Composite parent) { parent.setLayout(new GridLayout(1, false)); Composite composite = new Composite(parent, SWT.NONE); composite.setLayout(new GridLayout(2, false)); composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); warningImageLabel = new Label(composite, SWT.NONE); warningImageLabel.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1)); warningImageLabel.setImage(ImagePathConstant.WARNING_ICON.getImageFromRegistry()); warningLabel = new Label(composite, SWT.NONE); warningLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, true, 1, 1)); warningLabel.setText(Messages.WARNING_MESSAGE); warningLabel.setVisible(false); warningImageLabel.setVisible(false); if (!delimiterTextBox.getText().equalsIgnoreCase(",") || !quoteCharactorTextBox.getText().equalsIgnoreCase("\"")) { warningImageLabel.setVisible(true); warningLabel.setVisible(true); } createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
From source file:hydrograph.ui.parametergrid.dialog.MultiParameterFileDialog.java
License:Apache License
/** * Create contents of the button bar./* w w w .j a v a 2 s . c om*/ * * @param parent */ @Override protected void createButtonsForButtonBar(Composite parent) { Button okButton = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); okButton.setFocus(); applyButton = createButton(parent, IDialogConstants.NO_ID, "Apply", false); applyButton.setEnabled(false); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
From source file:hydrograph.ui.perspective.dialog.JdkPathDialog.java
License:Apache License
/** * Create contents of the button bar./* ww w.j a v a2s .c o m*/ * @param parent */ @Override protected void createButtonsForButtonBar(Composite parent) { parent.setLayout(new GridLayout(3, false)); parent.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, true, true)); createErrorLabel(parent); okButton = createButton(parent, IDialogConstants.OK_ID, "Save and &Restart", true); okButton.setEnabled(false); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
From source file:hydrograph.ui.propertywindow.propertydialog.PropertyDialog.java
License:Apache License
private Button createCancelButton(Composite parent) { Button cancelButton = createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);//from ww w . j a v a2 s . c om return cancelButton; }
From source file:hydrograph.ui.propertywindow.runconfig.RunConfigDialog.java
License:Apache License
/** * Create contents of the button bar.// w w w .j a v a 2 s . c o m * * @param parent */ @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); applyServerDetailsCrossTextEmptyValidationListener(txtEdgeNode); applyServerDetailsCrossTextEmptyValidationListener(txtPassword); applyServerDetailsCrossTextEmptyValidationListener(txtUserName); applyServerDetailsCrossTextEmptyValidationListener(txtBasePath); applyServerDetailsCrossTextEmptyValidationListener(txtKeyFile); applyServerDetailsCrossTextEmptyValidationListener(txtRunUtility); applyServerDetailsCrossTextEmptyValidationListener(txtProjectPath); loadBuildProperties(); }
From source file:hydrograph.ui.propertywindow.widgets.customwidgets.joinproperty.JoinMapGrid.java
License:Apache License
/** * Create contents of the button bar.// w w w . j a v a 2s. c o m * * @param parent */ @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); }