List of usage examples for org.eclipse.jface.dialogs IMessageProvider NONE
int NONE
To view the source code for org.eclipse.jface.dialogs IMessageProvider NONE.
Click Source Link
From source file:gov.redhawk.statistics.ui.internal.SettingsDialog.java
License:Open Source License
@Override public void create() { super.create(); setDialogHelpAvailable(false);/* w w w . j a v a 2 s.com*/ setTitle("Chart Options"); String messageText = "Please set the number of bars " + ((numDims > 1) ? "and select dimension(s) " : "") + "to be shown."; setMessage(messageText, IMessageProvider.NONE); //resize dialog window to ideal size this.getShell().pack(); }
From source file:gov.redhawk.statistics.ui.internal.SettingsDialog.java
License:Open Source License
private boolean isValidInput() { try {/* www . j ava2s . c o m*/ if (Integer.parseInt(barText.getText()) < 1) { setMessage("Please enter a positive integer.", IMessageProvider.ERROR); return false; } } catch (NumberFormatException e) { setMessage("Please enter a positive integer.", IMessageProvider.ERROR); return false; } setMessage("Please set the number of bars " + ((numDims > 1) ? "and select dimension(s) " : "") + "to be shown.", IMessageProvider.NONE); return true; }
From source file:info.evanchik.eclipse.karaf.wtp.ui.KarafRuntimeComposite.java
License:Open Source License
/** * Validate the state of the wizard based on the results of the listeners on * the various controls./*from w w w . j a va 2s .co m*/ */ protected void validateWizardState() { if (karafRuntimeWC == null) { wizard.setMessage("", IMessageProvider.ERROR); return; } final IStatus status = karafRuntimeWC.validate(null); if (status == null || status.isOK()) { wizard.setMessage(null, IMessageProvider.NONE); } else if (status.getSeverity() == IStatus.WARNING) { wizard.setMessage(status.getMessage(), IMessageProvider.WARNING); } else { wizard.setMessage(status.getMessage(), IMessageProvider.ERROR); } wizard.update(); }
From source file:io.sarl.eclipse.log.IssueInformationPage.java
License:Apache License
/** Update the page status and change the "finish" state button. *///from w w w .j av a 2s .c o m protected void updatePageStatus() { final boolean ok; if (Strings.isEmpty(this.titleField.getText())) { ok = false; setMessage(Messages.IssueInformationPage_5, IMessageProvider.ERROR); } else if (Strings.isEmpty(this.trackerLogin.getText())) { ok = false; setMessage(Messages.IssueInformationPage_6, IMessageProvider.ERROR); } else if (Strings.isEmpty(this.trackerPassword.getText())) { ok = false; setMessage(Messages.IssueInformationPage_7, IMessageProvider.ERROR); } else { ok = true; if (Strings.isEmpty(this.descriptionField.getText())) { setMessage(Messages.IssueInformationPage_8, IMessageProvider.WARNING); } else { setMessage(null, IMessageProvider.NONE); } } setPageComplete(ok); }
From source file:io.sarl.eclipse.wizards.sreinstall.AbstractSREInstallPage.java
License:Apache License
/** * Updates the status message on the page, based on the status of the SRE and other * status provided by the page./* ww w . ja va 2 s . c o m*/ */ protected void updatePageStatus() { if (this.status.isOK()) { setMessage(null, IMessageProvider.NONE); } else { switch (this.status.getSeverity()) { case IStatus.ERROR: setMessage(this.status.getMessage(), IMessageProvider.ERROR); break; case IStatus.INFO: setMessage(this.status.getMessage(), IMessageProvider.INFORMATION); break; case IStatus.WARNING: setMessage(this.status.getMessage(), IMessageProvider.WARNING); break; default: break; } } setPageComplete(this.status.isOK() || this.status.getSeverity() == IStatus.INFO); }
From source file:jasima_gui.dialogs.streamEditor.DetailsPageBase.java
License:Open Source License
private void hideError() { master.getManagedForm().getForm().setMessage(null, IMessageProvider.NONE); }
From source file:jasima_gui.editor.EditorWidget.java
License:Open Source License
/** * Shows an error without interrupting the user's work flow. This should be * used for errors that can be ignored temporarily, like invalid property * values.//from ww w.ja v a 2s. c o m * * @param message * the error message that should be shown */ protected void showError(String message) { if (message != null && (message = message.trim()).isEmpty()) message = null; if (message == null && getScrolledForm().getMessageType() == IMessageProvider.NONE) { return; } getScrolledForm().setMessage(message, message == null ? IMessageProvider.NONE : IMessageProvider.ERROR); }
From source file:melnorme.lang.ide.ui.preferences.common.AbstractComponentsPrefPage.java
License:Open Source License
public static int statusLevelToMessageType(StatusLevel statusLevel) { switch (statusLevel) { case OK:/*from w ww . j av a 2 s.co m*/ return IMessageProvider.NONE; case INFO: return IMessageProvider.INFORMATION; case WARNING: return IMessageProvider.WARNING; case ERROR: return IMessageProvider.ERROR; } throw assertFail(); }
From source file:melnorme.lang.ide.ui.utils.DialogPageUtils.java
License:Open Source License
public static int severityToMessageType(IStatus status) { switch (status.getSeverity()) { case IStatus.ERROR: return IMessageProvider.ERROR; case IStatus.WARNING: return IMessageProvider.WARNING; case IStatus.INFO: return IMessageProvider.INFORMATION; case IStatus.OK: return IMessageProvider.NONE; default://from w w w. j a va 2s . c o m return IMessageProvider.NONE; } }
From source file:mtws.views.FTPDialog.java
License:Open Source License
@Override public void create() { super.create(); super.getButton(OK).setText("Save and Exit"); super.getButton(CANCEL).setText("Close"); setTitle("FTP Config for Savant, Configuring the Maven like Environment"); setMessage(/*from w w w .j a v a 2s. c om*/ "Configure the jar path, select the project that needs to refered using jar instead of projects which increase overall build performance", IMessageProvider.NONE); // populateFtpConfigData(pMtWsDOs); }