public class SwingGUIBugReporter extends TextUIBugReporter
AbstractBugReporter.Error
outputStream
NORMAL, SILENT
Constructor and Description |
---|
SwingGUIBugReporter(AnalysisRun analysisRun)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
doReportBug(BugInstance bugInstance)
Subclasses must override this.
|
protected void |
emitLine(java.lang.String line)
Emit one line of the error message report.
|
boolean |
errorsOccurred() |
void |
finish()
Finish reporting bugs.
|
SortedBugCollection |
getBugCollection() |
AnalysisErrorDialog |
getErrorDialog() |
void |
logError(java.lang.String message)
Log an error that occurs while performing analysis.
|
void |
observeClass(ClassDescriptor classDescriptor)
Observe a class being visited.
|
void |
reportMissingClass(java.lang.ClassNotFoundException ex)
Called to report a class lookup failure.
|
void |
reportQueuedErrors()
Report any accumulated error messages.
|
checkBugInstance, getRealBugReporter, getUseLongBugCodes, isApplySuppressions, printBug, reportAnalysisError, reportMissingClass, setApplySuppressions, setOutputStream, setReportHistory, setReportStackTrace, setReportUserDesignations, setShowRank, setUseLongBugCodes
addObserver, getMissingClasses, getMissingClassName, getProjectStats, getQueuedErrors, isValidMissingClassMessage, logError, notifyObservers, reportBug, reportBugsFromXml, reportMissingClass, reportSkippedAnalysis, setErrorVerbosity, setPriorityThreshold, setRankThreshold
public SwingGUIBugReporter(AnalysisRun analysisRun)
analysisRun
- public SortedBugCollection getBugCollection()
public boolean errorsOccurred()
public AnalysisErrorDialog getErrorDialog()
public void observeClass(ClassDescriptor classDescriptor)
IClassObserver
classDescriptor
- class being visitedpublic void reportMissingClass(java.lang.ClassNotFoundException ex)
IErrorLogger
reportMissingClass
in interface IErrorLogger
reportMissingClass
in class AbstractBugReporter
ex
- a ClassNotFoundException resulting from the class lookup failurepublic void logError(java.lang.String message)
IErrorLogger
logError
in interface IErrorLogger
logError
in class AbstractBugReporter
message
- the error messagepublic void finish()
BugReporter
public void doReportBug(BugInstance bugInstance)
AbstractBugReporter
doReportBug
in class AbstractBugReporter
bugInstance
- the bug to reportpublic void reportQueuedErrors()
BugReporter
reportQueuedErrors
in interface BugReporter
reportQueuedErrors
in class TextUIBugReporter
protected void emitLine(java.lang.String line)
TextUIBugReporter
emitLine
in class TextUIBugReporter
line
- one line of the error reportFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.