diff options
Diffstat (limited to 'bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPProblemRequestor.java')
-rw-r--r-- | bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPProblemRequestor.java | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPProblemRequestor.java b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPProblemRequestor.java deleted file mode 100644 index cf47682465..0000000000 --- a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPProblemRequestor.java +++ /dev/null @@ -1,88 +0,0 @@ -package org.eclipse.jst.jsp.core.internal.java; - -/** - * @author pavery - */ - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.jdt.core.IProblemRequestor; -import org.eclipse.jdt.core.compiler.IProblem; - -class JSPProblemRequestor implements IProblemRequestor { - - private boolean fIsActive = false; - - private boolean fIsRunning = false; - - private List fCollectedProblems; - - public void beginReporting() { - - fIsRunning = true; - fCollectedProblems = new ArrayList(); - } - - public void acceptProblem(IProblem problem) { - - if (isActive()) - fCollectedProblems.add(problem); - } - - public void endReporting() { - - fIsRunning = false; - } - - public boolean isActive() { - - return fIsActive && fCollectedProblems != null; - } - - /** - * Sets the active state of this problem requestor. - * - * @param isActive - * the state of this problem requestor - */ - public void setIsActive(boolean isActive) { - - if (fIsActive != isActive) { - fIsActive = isActive; - if (fIsActive) - startCollectingProblems(); - else - stopCollectingProblems(); - } - } - - /** - * Tells this annotation model to collect temporary problems from now on. - */ - private void startCollectingProblems() { - - fCollectedProblems = new ArrayList(); - } - - /** - * Tells this annotation model to no longer collect temporary problems. - */ - private void stopCollectingProblems() { - - // do nothing - } - - /** - * @return the list of collected problems - */ - public List getCollectedProblems() { - - return fCollectedProblems; - } - - public boolean isRunning() { - - return fIsRunning; - } -} |