List of usage examples for org.eclipse.jface.dialogs IDialogConstants CLOSE_LABEL
String CLOSE_LABEL
To view the source code for org.eclipse.jface.dialogs IDialogConstants CLOSE_LABEL.
Click Source Link
From source file:org.eclipse.zest.custom.sequence.widgets.internal.ThrownErrorDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true); }
From source file:org.fusesource.ide.jvmmonitor.internal.ui.properties.cpu.actions.FindDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { findButton = createButton(parent, IDialogConstants.CLIENT_ID, Messages.findButtonLabel, true); findButton.addSelectionListener(new SelectionAdapter() { @Override/*from w w w .j ava 2 s .com*/ public void widgetSelected(SelectionEvent e) { doFind(); } }); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CLOSE_LABEL, false); }
From source file:org.fusesource.ide.jvmmonitor.internal.ui.properties.mbean.InvokeDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { Button invokeButton = createButton(parent, IDialogConstants.CLIENT_ID, Messages.invokeButtonLabel, true); invokeButton.addSelectionListener(new SelectionAdapter() { @Override/*ww w . j a va2 s .c om*/ public void widgetSelected(SelectionEvent e) { invoke(); } }); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CLOSE_LABEL, false); }
From source file:org.fusesource.ide.sap.ui.dialog.TestDestinationDialog.java
License:Open Source License
/** * Create contents of the button bar./*from w ww . ja v a 2 s . c o m*/ * @param parent */ @Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, TEST_ID, Messages.TestDestinationDialog_Test, false); createButton(parent, CLEAR_ID, Messages.TestDestinationDialog_Clear, false); createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true); }
From source file:org.fusesource.ide.sap.ui.dialog.TestServerDialog.java
License:Open Source License
/** * Create contents of the button bar./*from w w w .ja v a2s.c o m*/ * @param parent */ @Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, START_ID, Messages.TestServerDialog_Start, false); createButton(parent, IDialogConstants.STOP_ID, IDialogConstants.STOP_LABEL, false); createButton(parent, CLEAR_ID, Messages.TestServerDialog_Clear, false); createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true); }
From source file:org.gw4e.eclipse.facade.DialogManager.java
License:Open Source License
public static MessageDialogWithToggle createRememberDecisonDialog(String title, String text, String toggletext, Runnable okRunnable) {//ww w . j ava 2 s .co m final String[] buttons = new String[] { IDialogConstants.CLOSE_LABEL, IDialogConstants.OK_LABEL, }; return new MessageDialogWithToggle(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), title, null, text, MessageDialog.QUESTION, buttons, 0, toggletext, false) { protected void buttonPressed(int buttonId) { if (okRunnable != null && IDialogConstants.OK_ID == buttonId) { okRunnable.run(); return; } super.buttonPressed(buttonId); } }; }
From source file:org.jcryptool.crypto.keystore.ui.dialogs.CommonPropertyDialog.java
License:Open Source License
/** * Create contents of the button bar./*from ww w . j av a 2s .c o m*/ * * @param parent */ @Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CLOSE_LABEL, true); }
From source file:org.jcryptool.games.numbershark.strategies.AbstractResultDialog.java
License:Open Source License
/** * Create contents of the button bar./* w w w.ja v a 2 s.com*/ * * @param parent */ @Override protected void createButtonsForButtonBar(Composite parent) { playSelected = createButton(parent, PLAY, Messages.ShowOptStrategy_9, true); playSelected.setEnabled(false); playSelected.addSelectionListener(playSelection); Button saveAsButton = createButton(parent, SAVE, Messages.ShowOptStrategy_8, true); saveAsButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { int min = Integer.parseInt(sequences.getItem(0).getText(0)); int max = Integer.parseInt(sequences.getItem(sequences.getItemCount() - 1).getText(0)); FileDialog saveDialog = new FileDialog(Display.getCurrent().getActiveShell(), SWT.SAVE); saveDialog.setFilterPath(DirectoryService.getUserHomeDir()); saveDialog.setFilterNames(new String[] { "CSV-File", "All Files (*.*)" }); saveDialog.setFilterExtensions(new String[] { "*.csv", "*.*" }); saveDialog.setFileName("log_numberShark_" + min + "-" + max + ".csv"); saveDialog.setOverwrite(true); String fileName = saveDialog.open(); if (fileName == null) { return; } try { CSVConverter converter = new CSVConverter(sequences); FileWriter writer = new FileWriter(fileName); writer.append(converter.getContentToCSV()); writer.flush(); writer.close(); } catch (Exception ex) { } } }); createButton(parent, IDialogConstants.OK_ID, IDialogConstants.CLOSE_LABEL, true); }
From source file:org.jetbrains.kotlin.psi.visualization.VisualizationPage.java
License:Apache License
@Override protected void createButtonsForButtonBar(Composite parent) { Button closeButton = createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, false); closeButton.addSelectionListener(new SelectionAdapter() { @Override//from w ww . j a va2 s. c o m public void widgetSelected(SelectionEvent e) { setReturnCode(OK); close(); } }); }
From source file:org.jkiss.dbeaver.core.application.update.VersionUpdateDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { if (newVersion != null) { boolean hasUpdate = Platform.getBundle(CheckForUpdateAction.P2_PLUGIN_ID) != null; if (hasUpdate) { createButton(parent, IDialogConstants.PROCEED_ID, "Update", true); }/*from w ww . j a va 2 s . co m*/ createButton(parent, INFO_ID, CoreMessages.dialog_version_update_button_more_info, !hasUpdate); } createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, newVersion == null); }