edu.umd.cs.findbugs.config
Class UserPreferences

java.lang.Object
  extended by edu.umd.cs.findbugs.config.UserPreferences

public class UserPreferences
extends java.lang.Object

User Preferences outside of any one Project. This consists of a class to manage the findbugs.prop file found in the user.dir.

Author:
Dave Brosius

Field Summary
private static java.lang.String DETECTOR_THRESHOLD_KEY
           
private  java.util.HashMap<java.lang.String,java.lang.Boolean> detectorStateList
           
private static java.lang.String FILTER_SETTINGS_KEY
           
private  ProjectFilterSettings filterSettings
           
private static int MAX_RECENT_FILES
           
private static UserPreferences preferencesSingleton
           
private  java.util.LinkedList<java.lang.String> recentProjectsList
           
 
Constructor Summary
private UserPreferences()
           
 
Method Summary
 ProjectFilterSettings getFilterSettings()
           
 java.util.List<java.lang.String> getRecentProjects()
           
 int getUserDetectorThreshold()
           
static UserPreferences getUserPreferences()
           
 void loadUserDetectorPreferences()
           
 void read()
           
 void removeProject(java.lang.String projectName)
           
 void setUserDetectorThreshold(int threshold)
           
 void storeUserDetectorPreferences()
           
 void useProject(java.lang.String projectName)
           
 void write()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_RECENT_FILES

private static final int MAX_RECENT_FILES
See Also:
Constant Field Values

DETECTOR_THRESHOLD_KEY

private static final java.lang.String DETECTOR_THRESHOLD_KEY
See Also:
Constant Field Values

FILTER_SETTINGS_KEY

private static final java.lang.String FILTER_SETTINGS_KEY
See Also:
Constant Field Values

recentProjectsList

private java.util.LinkedList<java.lang.String> recentProjectsList

detectorStateList

private java.util.HashMap<java.lang.String,java.lang.Boolean> detectorStateList

filterSettings

private ProjectFilterSettings filterSettings

preferencesSingleton

private static UserPreferences preferencesSingleton
Constructor Detail

UserPreferences

private UserPreferences()
Method Detail

getUserPreferences

public static UserPreferences getUserPreferences()

read

public void read()

write

public void write()

getRecentProjects

public java.util.List<java.lang.String> getRecentProjects()

useProject

public void useProject(java.lang.String projectName)

removeProject

public void removeProject(java.lang.String projectName)

loadUserDetectorPreferences

public void loadUserDetectorPreferences()

storeUserDetectorPreferences

public void storeUserDetectorPreferences()

getFilterSettings

public ProjectFilterSettings getFilterSettings()

getUserDetectorThreshold

public int getUserDetectorThreshold()

setUserDetectorThreshold

public void setUserDetectorThreshold(int threshold)