20 package net.sf.gridarta.model.errorview;
22 import org.apache.log4j.Category;
23 import org.apache.log4j.Logger;
24 import org.jetbrains.annotations.NotNull;
51 if (LOG.isInfoEnabled()) {
52 LOG.info(
"addError: " + categoryName +
" " + message);
59 if (LOG.isInfoEnabled()) {
60 LOG.info(
"addError: " + categoryName +
" " + lineNo +
" " + message);
67 if (LOG.isInfoEnabled()) {
68 LOG.info(
"addWarning: " + categoryName +
" " + message);
75 if (LOG.isInfoEnabled()) {
76 LOG.info(
"addWarning: " + categoryName +
" " + lineNo +
" " + message);
95 throw new AssertionError();
void addWarning(@NotNull final ErrorViewCategory categoryName, @NotNull final String message)
Adds a warning message.
void waitDialog()
Waits until the dialog has been dismissed.
boolean hasWarnings()
Returns whether at least one warning message has been added.
void addError(@NotNull final ErrorViewCategory categoryName, @NotNull final String message)
Adds an error message.
Defines possible error categories for ErrorView instances.
Interface for classes displaying error messages.
boolean hasErrors
Whether errors have been collected.
static final Category LOG
The Logger for printing log messages.
boolean hasErrors()
Whether at least one error message has been added.
void addError(@NotNull final ErrorViewCategory categoryName, final int lineNo, @NotNull final String message)
Adds an error message.
void addWarning(@NotNull final ErrorViewCategory categoryName, final int lineNo, @NotNull final String message)
Adds a warning message.
boolean hasWarnings
Whether warnings have been collected.
An ErrorView suitable for unit tests.