edu.umd.cs.findbugs.gui2

Class BugLoader

public class BugLoader extends Object

Everything having to do with loading bugs should end up here.

Author: Dan

Method Summary
static BugCollectioncombineBugHistories(Project project)
TODO: This really needs to be rewritten such that they don't have to choose ALL xmls in one fel swoop.
static BugCollectiondoAnalysis(Project p, FindBugsProgress progressCallback)
Performs an analysis and returns the BugSet created
static SortedBugCollectionloadBugs(MainFrame mainFrame, Project project, URL url)
static SortedBugCollectionloadBugs(MainFrame mainFrame, Project project, File file)
static BugSetloadBugsHelper(BugCollection collection)

Method Detail

combineBugHistories

public static BugCollection combineBugHistories(Project project)
TODO: This really needs to be rewritten such that they don't have to choose ALL xmls in one fel swoop. I'm thinking something more like new project wizard's functionality. -Dan Merges bug collection histories from xmls selected by the user. Right now all xmls must be in the same folder and he must select all of them at once Makes use of FindBugs's mergeCollection method in the Update class of the workflow package

Parameters: project TODO

Returns: the merged collecction of bugs

doAnalysis

public static BugCollection doAnalysis(Project p, FindBugsProgress progressCallback)
Performs an analysis and returns the BugSet created

Parameters: p The Project to run the analysis on progressCallback the progressCallBack is supposed to be supplied by analyzing dialog, FindBugs supplies progress information while it runs the analysis

Returns: the bugs found

loadBugs

public static SortedBugCollection loadBugs(MainFrame mainFrame, Project project, URL url)

loadBugs

public static SortedBugCollection loadBugs(MainFrame mainFrame, Project project, File file)

loadBugsHelper

public static BugSet loadBugsHelper(BugCollection collection)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.