/** * Clears the error message from the message line. */ protected void clearErrorMessage() { if (page != null) { page.setErrorMessage(null); } }
/** * Shows the given message in the page for this * field editor if it has one. * * @param msg the message */ protected void showMessage(String msg) { if (page != null) { page.setErrorMessage(msg); } }
/** * Shows the given error message in the page for this * field editor if it has one. * * @param msg the error message */ protected void showErrorMessage(String msg) { if (page != null) { page.setErrorMessage(msg); } }
/** * Shows the given error message in the page for this * field editor if it has one. * * @param msg the error message */ protected void showErrorMessage(String msg) { if (page != null) { page.setErrorMessage(msg); } }
/** * Shows the given error message in the page for this * field editor if it has one. * * @param msg the error message */ protected void showErrorMessage(String msg) { if (page != null) { page.setErrorMessage(msg); } }
/** * Clears the error message from the message line. */ protected void clearErrorMessage() { if (page != null) { page.setErrorMessage(null); } }
/** * Shows the given message in the page for this * field editor if it has one. * * @param msg the message */ protected void showMessage(String msg) { if (page != null) { page.setErrorMessage(msg); } }
/** * Clears the error message from the message line. */ protected void clearErrorMessage() { if (page != null) { page.setErrorMessage(null); } }
/** * Shows the given message in the page for this * field editor if it has one. * * @param msg the message */ protected void showMessage(String msg) { if (page != null) { page.setErrorMessage(msg); } }
public void setErrorMessage(String newMessage) { super.setErrorMessage(newMessage); fMessageRegion.updateText(newMessage, IMessageProvider.ERROR); } }
@Override public void setErrorMessage(String newMessage) { super.setErrorMessage(newMessage); fMessageRegion.updateText(newMessage, IMessageProvider.ERROR); } }
private static void applyToStatusLine(DialogPage page, IStatus status) { String message = status.getMessage(); if (message != null && message.length() == 0) { message = null; } switch (status.getSeverity()) { case IStatus.OK: page.setMessage(message, IMessageProvider.NONE); page.setErrorMessage(null); break; case IStatus.WARNING: page.setMessage(message, IMessageProvider.WARNING); page.setErrorMessage(null); break; case IStatus.INFO: page.setMessage(message, IMessageProvider.INFORMATION); page.setErrorMessage(null); break; default: page.setMessage(null); page.setErrorMessage(message); break; } }
private void applyToStatusLine(DialogPage page, IStatus status) { String message = status.getMessage(); switch (status.getSeverity()) { case IStatus.OK: page.setMessage(message, IMessageProvider.NONE); page.setErrorMessage(null); break; case IStatus.WARNING: page.setMessage(message, IMessageProvider.WARNING); page.setErrorMessage(null); break; case IStatus.INFO: page.setMessage(message, IMessageProvider.INFORMATION); page.setErrorMessage(null); break; default: if (message.length() == 0) { message = null; } page.setMessage(null); page.setErrorMessage(message); break; } }
/** * The <code>WizardPage</code> implementation of this method * declared on <code>DialogPage</code> updates the container * if this is the current page. */ @Override public void setErrorMessage(String newMessage) { super.setErrorMessage(newMessage); if (isCurrentPage()) { getContainer().updateMessage(); } }
public void setErrorMessage(String newMessage) { super.setErrorMessage(newMessage); if (getContainer() != null) { getContainer().updateMessage(); } }
@Override public void setErrorMessage(String newMessage) { super.setErrorMessage(newMessage); if (getContainer() != null) { getContainer().updateMessage(); } }
@Override public void setErrorMessage(String newMessage) { super.setErrorMessage(newMessage); if (getContainer() != null) { getContainer().updateMessage(); } }
/** * The <code>WizardPage</code> implementation of this method * declared on <code>DialogPage</code> updates the container * if this is the current page. */ public void setErrorMessage(String newMessage) { super.setErrorMessage(newMessage); if (isCurrentPage()) { getContainer().updateMessage(); } }
/** * The <code>WizardPage</code> implementation of this method * declared on <code>DialogPage</code> updates the container * if this is the current page. */ @Override public void setErrorMessage(String newMessage) { super.setErrorMessage(newMessage); if (isCurrentPage()) { getContainer().updateMessage(); } }
/** * @noreference This method is not intended to be referenced by clients. */ protected void handleStatusChanged() { String message = messageProvider.getMessage(currentStatusProvider); int type = messageProvider.getMessageType(currentStatusProvider); if (type == IMessageProvider.ERROR) { dialogPage.setMessage(null); dialogPage.setErrorMessage(uiChanged ? message : null); if (currentStatus != null && currentStatusHasException()) { handleStatusException(); } } else { dialogPage.setErrorMessage(null); dialogPage.setMessage(message, type); } }