|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.gui.AnalysisRun
public class AnalysisRun
Representation of a run of the FindBugs analysis on a Project. This class has convenient methods which can be used to extract bug reports in various interesting ways.
Nested Class Summary | |
---|---|
private class |
AnalysisRun.Reporter
Our BugReporter just puts the reported BugInstances into a SortedBugCollection. |
Field Summary | |
---|---|
private static boolean |
CREATE_SUMMARY
|
private AnalysisErrorDialog |
errorDialog
|
private FindBugs |
findBugs
|
private FindBugsFrame |
frame
|
private ConsoleLogger |
logger
|
private static java.lang.String |
MISSING_SUMMARY_MESSAGE
|
private Project |
project
|
private AnalysisRun.Reporter |
reporter
|
private java.lang.String |
summary
|
private java.util.HashMap<java.lang.String,javax.swing.tree.DefaultTreeModel> |
treeModelMap
|
Constructor Summary | |
---|---|
AnalysisRun(Project project,
FindBugsFrame frame)
Creates a new instance of AnalysisRun. |
Method Summary | |
---|---|
private void |
createSummary(ProjectStats stats)
|
void |
execute(FindBugsProgress progressCallback)
Run the analysis. |
java.util.Collection<BugInstance> |
getBugInstances()
Return the collection of BugInstances. |
java.lang.String |
getSummary()
|
javax.swing.tree.DefaultTreeModel |
getTreeModel(java.lang.String groupByOrder)
Get the tree model to be used in the BugTree. |
void |
loadBugsFromFile(java.io.File file)
Load bugs from a file. |
void |
reportAnalysisErrors()
Report any errors that may have occurred during analysis. |
void |
saveBugsToFile(java.io.File file)
Save bugs to a file. |
void |
setTreeModel(java.lang.String groupByOrder,
javax.swing.tree.DefaultTreeModel treeModel)
Set the tree model to be used in the BugTree. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Project project
private FindBugsFrame frame
private java.lang.String summary
private ConsoleLogger logger
private FindBugs findBugs
private AnalysisRun.Reporter reporter
private java.util.HashMap<java.lang.String,javax.swing.tree.DefaultTreeModel> treeModelMap
private AnalysisErrorDialog errorDialog
private static final java.lang.String MISSING_SUMMARY_MESSAGE
private static final boolean CREATE_SUMMARY
Constructor Detail |
---|
public AnalysisRun(Project project, FindBugsFrame frame)
Method Detail |
---|
public void execute(FindBugsProgress progressCallback) throws java.io.IOException, java.lang.InterruptedException
progressCallback
- the progress callback
java.io.IOException
- if an I/O error occurs during the analysis
java.lang.InterruptedException
- if the analysis thread is interruptedprivate void createSummary(ProjectStats stats) throws java.io.IOException
java.io.IOException
public void loadBugsFromFile(java.io.File file) throws java.io.IOException, org.dom4j.DocumentException
java.io.IOException
org.dom4j.DocumentException
public void saveBugsToFile(java.io.File file) throws java.io.IOException
java.io.IOException
public void reportAnalysisErrors()
public java.util.Collection<BugInstance> getBugInstances()
public void setTreeModel(java.lang.String groupByOrder, javax.swing.tree.DefaultTreeModel treeModel)
groupByOrder
- the grouping order that the tree model will conform totreeModel
- the tree modelpublic javax.swing.tree.DefaultTreeModel getTreeModel(java.lang.String groupByOrder)
groupByOrder
- the grouping order that the tree model conforms to
public java.lang.String getSummary()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |