Package edu.umd.cs.findbugs.gui2
Class BugLoader
java.lang.Object
edu.umd.cs.findbugs.gui2.BugLoader
Everything having to do with loading bugs should end up here.
- Author:
- Dan
-
Method Summary
Modifier and TypeMethodDescriptionstatic BugCollectionTODO: This really needs to be rewritten such that they don't have to choose ALL xmls in one fel swoop.static @Nullable BugCollectiondoAnalysis(@NonNull Project p) Does what it says it does, hit apple r (control r on pc) and the analysis is redone using the current projectstatic BugCollectiondoAnalysis(@NonNull Project p, FindBugsProgress progressCallback) Performs an analysis and returns the BugSet createdstatic @Nullable SortedBugCollectionstatic @Nullable SortedBugCollectionstatic @Nullable ProjectloadProject(MainFrame mainFrame, File f) static @Nullable BugCollectionredoAnalysisKeepComments(@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
-
Method Details
-
doAnalysis
public static BugCollection doAnalysis(@NonNull Project p, FindBugsProgress progressCallback) throws IOException, InterruptedException Performs an analysis and returns the BugSet created- Parameters:
p- The Project to run the analysis onprogressCallback- the progressCallBack is supposed to be supplied by analyzing dialog, FindBugs supplies progress information while it runs the analysis- Returns:
- the bugs found
- Throws:
InterruptedExceptionIOException
-
loadBugs
public static @Nullable SortedBugCollection loadBugs(MainFrame mainFrame, Project project, File source) -
loadBugs
-
loadProject
-
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
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
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
-