 |
Gridarta Editor
|
Go to the documentation of this file.
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 addError(@NotNull final ErrorViewCategory categoryName, final int lineNo, @NotNull final String message)
Adds an error message.
boolean hasErrors()
Whether at least one error message has been added.
boolean hasErrors
Whether errors have been collected.
Interface for classes displaying error messages.
void waitDialog()
Waits until the dialog has been dismissed.
boolean hasWarnings()
Returns whether at least one warning message has been added.
Defines possible error categories for ErrorView instances.
An ErrorView suitable for unit tests.
static final Category LOG
The Logger for printing log messages.
void addWarning(@NotNull final ErrorViewCategory categoryName, @NotNull final String message)
Adds a warning 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.
void addError(@NotNull final ErrorViewCategory categoryName, @NotNull final String message)
Adds an error message.