edu.umd.cs.findbugs.gui

Class FindBugsFrame

public final class FindBugsFrame extends JFrame implements LogSync

The main GUI frame for FindBugs.

Author: David Hovemeyer

Constructor Summary
FindBugsFrame()
Creates new form FindBugsFrame.
Method Summary
voiderror(String message)
Show an error dialog.
ProjectFilterSettingsgetFilterSettings()
Get the current ProjectFilterSettings.
LoggergetLogger()
Get the Logger.
intgetPriorityThreshold()
Get the current priority threshold.
AnalysisFeatureSetting[]getSettingList()
Get list of AnalysisFeatureSettings.
static voidmain(String[] args)
Invoke from the command line.
static voidshowCommandLineOptions()
static voidshowSynopsis()
FileverifyFileSelection(File pickedFile)
Fix up the path that is received from JFileChooser, if necessary Double clicking a directory causes a repeated name, for some reason such as a:\b\c\c when a:\b\c was chosen
voidwriteToLog(String message)
Write a message to the console window.

Constructor Detail

FindBugsFrame

public FindBugsFrame()
Creates new form FindBugsFrame.

Method Detail

error

public void error(String message)
Show an error dialog.

getFilterSettings

public ProjectFilterSettings getFilterSettings()
Get the current ProjectFilterSettings.

getLogger

public Logger getLogger()
Get the Logger.

getPriorityThreshold

public int getPriorityThreshold()
Get the current priority threshold.

getSettingList

public AnalysisFeatureSetting[] getSettingList()
Get list of AnalysisFeatureSettings.

Returns: list of AnalysisFeatureSettings

main

public static void main(String[] args)
Invoke from the command line.

Parameters: args the command line arguments

Throws: IOException

showCommandLineOptions

public static void showCommandLineOptions()

showSynopsis

public static void showSynopsis()

verifyFileSelection

public File verifyFileSelection(File pickedFile)
Fix up the path that is received from JFileChooser, if necessary Double clicking a directory causes a repeated name, for some reason such as a:\b\c\c when a:\b\c was chosen

writeToLog

public void writeToLog(String message)
Write a message to the console window.

Parameters: message the message to write

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