FindBugs™ 1.3.9

edu.umd.cs.findbugs.gui2
Class BugLoader

java.lang.Object
  extended by edu.umd.cs.findbugs.gui2.BugLoader

public class BugLoader
extends java.lang.Object

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

Author:
Dan

Method Summary
static BugCollection combineBugHistories()
          TODO: This really needs to be rewritten such that they don't have to choose ALL xmls in one fel swoop.
static BugCollection doAnalysis(Project p)
          Does what it says it does, hit apple r (control r on pc) and the analysis is redone using the current project
static BugCollection doAnalysis(Project p, FindBugsProgress progressCallback)
          Performs an analysis and returns the BugSet created
static SortedBugCollection loadBugs(MainFrame mainFrame, Project project, java.io.File source)
           
static SortedBugCollection loadBugs(MainFrame mainFrame, Project project, java.net.URL url)
           
static BugSet loadBugsHelper(BugCollection collection)
           
static Project loadProject(MainFrame mainFrame, java.io.File f)
           
static BugCollection redoAnalysisKeepComments(Project p)
          Does what it says it does, hit apple r (control r on pc) and the analysis is redone using the current project
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

doAnalysis

public static BugCollection doAnalysis(@NonNull
                                       Project p,
                                       FindBugsProgress progressCallback)
                                throws java.io.IOException,
                                       java.lang.InterruptedException
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
Throws:
java.lang.InterruptedException
java.io.IOException

loadBugsHelper

public static BugSet loadBugsHelper(BugCollection collection)

loadBugs

@CheckForNull
public static SortedBugCollection loadBugs(MainFrame mainFrame,
                                                        Project project,
                                                        java.io.File source)

loadBugs

@CheckForNull
public static SortedBugCollection loadBugs(MainFrame mainFrame,
                                                        Project project,
                                                        java.net.URL url)

loadProject

@CheckForNull
public static Project loadProject(MainFrame mainFrame,
                                               java.io.File f)

combineBugHistories

public static BugCollection combineBugHistories()
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

Returns:
the merged collecction of bugs

doAnalysis

@CheckForNull
public static BugCollection doAnalysis(@NonNull
                                                    Project p)
Does what it says it does, hit apple r (control r on pc) and the analysis is redone using the current project

Parameters:
p -
Returns:
the bugs from the reanalysis, or null if cancelled

redoAnalysisKeepComments

@CheckForNull
public static BugCollection redoAnalysisKeepComments(@NonNull
                                                                  Project p)
Does what it says it does, hit apple r (control r on pc) and the analysis is redone using the current project

Parameters:
p -
Returns:
the bugs from the reanalysis, or null if canceled

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.