Modifier and Type | Field and Description |
---|---|
static String |
EFFORT_DEFAULT |
static String |
EFFORT_MAX |
static String |
EFFORT_MIN |
static String |
KEY_EXCLUDE_BUGS
Key prefix for custom filters, full key consists of a prefix + filter index starting with 0
|
static String |
KEY_EXCLUDE_FILTER
Key prefix for custom filters, full key consists of a prefix + filter index starting with 0
|
static String |
KEY_INCLUDE_FILTER
Key prefix for custom filters, full key consists of a prefix + filter index starting with 0
|
static String |
KEY_PLUGIN
Key prefix for custom plugins, full key consists of a prefix + plugin index starting with 0
|
Modifier and Type | Method and Description |
---|---|
UserPreferences |
clone() |
static UserPreferences |
createDefaultUserPreferences()
Create default UserPreferences.
|
void |
enableAllDetectors(boolean enable)
Enable or disable all known Detectors.
|
void |
enableDetector(DetectorFactory factory,
boolean enable)
Set the enabled/disabled status of given Detector.
|
boolean |
equals(Object obj) |
AnalysisFeatureSetting[] |
getAnalysisFeatureSettings()
Returns the effort level as an array of feature settings as expected by
FindBugs.
|
String |
getCloudId() |
Map<String,Boolean> |
getCustomPlugins()
Additional plugins which could be used by
IFindBugsEngine (if
enabled), or which shouldn't be used (if disabled). |
Set<String> |
getCustomPlugins(boolean enabled)
Additional plugins which could be used or shouldn't be used (depending on
given argument) by
IFindBugsEngine . |
String |
getEffort() |
Map<String,Boolean> |
getExcludeBugsFiles() |
Map<String,Boolean> |
getExcludeFilterFiles() |
ProjectFilterSettings |
getFilterSettings()
Get ProjectFilterSettings.
|
Map<String,Boolean> |
getIncludeFilterFiles() |
List<String> |
getRecentProjects()
Get List of recent project filenames.
|
int |
getUserDetectorThreshold()
Get the detector threshold (min severity to report a warning).
|
int |
hashCode() |
boolean |
isDetectorEnabled(DetectorFactory factory)
Get the enabled/disabled status of given Detector.
|
boolean |
isRunAtFullBuild()
Get the enabled/disabled status of runAtFullBuild
|
void |
read()
Read persistent global UserPreferences from file in the user's home
directory.
|
void |
read(InputStream in)
Read user preferences from given input stream.
|
void |
removeProject(String projectName)
Remove project filename from the recently-used project list.
|
void |
setCloudId(String cloudId) |
void |
setCustomPlugins(Map<String,Boolean> customPlugins)
Additional plugins which could be used by
IFindBugsEngine (if
enabled), or which shouldn't be used (if disabled). |
void |
setEffort(String effort) |
void |
setExcludeBugsFiles(Map<String,Boolean> excludeBugsFiles) |
void |
setExcludeFilterFiles(Map<String,Boolean> excludeFilterFiles) |
void |
setIncludeFilterFiles(Map<String,Boolean> includeFilterFiles) |
void |
setProjectFilterSettings(ProjectFilterSettings filterSettings)
Set the ProjectFilterSettings.
|
void |
setRunAtFullBuild(boolean enable)
Set the enabled/disabled status of running findbugs automatically for
full builds.
|
void |
setUserDetectorThreshold(int threshold)
Set the detector threshold (min severity to report a warning).
|
void |
setUserDetectorThreshold(String threshold)
Set the detector threshold (min severity to report a warning).
|
void |
useProject(String projectName)
Add given project filename to the front of the recently-used project
list.
|
void |
write()
Write persistent global UserPreferences to file in user's home directory.
|
void |
write(OutputStream out)
Write UserPreferences to given OutputStream.
|
public static final String EFFORT_MIN
public static final String EFFORT_DEFAULT
public static final String EFFORT_MAX
public static final String KEY_PLUGIN
public static final String KEY_INCLUDE_FILTER
public static final String KEY_EXCLUDE_FILTER
public static final String KEY_EXCLUDE_BUGS
public static UserPreferences createDefaultUserPreferences()
public void read()
public void read(@WillClose InputStream in) throws IOException
in
- the InputStreamIOException
public void write()
public void write(@WillClose OutputStream out) throws IOException
out
- the OutputStreamIOException
public List<String> getRecentProjects()
public void useProject(String projectName)
projectName
- project filenamepublic void removeProject(String projectName)
projectName
- project filenamepublic void enableDetector(DetectorFactory factory, boolean enable)
factory
- the DetectorFactory for the Detector to be enabled/disabledenable
- true if the Detector should be enabled, false if it should be
Disabledpublic boolean isDetectorEnabled(DetectorFactory factory)
factory
- the DetectorFactory of the Detectorpublic void enableAllDetectors(boolean enable)
enable
- true if all detectors should be enabled, false if they should
all be disabledpublic void setProjectFilterSettings(ProjectFilterSettings filterSettings)
filterSettings
- the ProjectFilterSettingspublic ProjectFilterSettings getFilterSettings()
public int getUserDetectorThreshold()
public void setUserDetectorThreshold(int threshold)
threshold
- the detector thresholdpublic void setRunAtFullBuild(boolean enable)
enable
- true if running FindBugs at full builds should be enabled,
false if it should be Disabledpublic boolean isRunAtFullBuild()
public void setUserDetectorThreshold(String threshold)
threshold
- the detector thresholdpublic UserPreferences clone()
public String getEffort()
public void setEffort(String effort)
public String getCloudId()
public void setCloudId(String cloudId)
cloudId
- The cloudId to set.public void setCustomPlugins(Map<String,Boolean> customPlugins)
IFindBugsEngine
(if
enabled), or which shouldn't be used (if disabled). If a plugin is not
included in the set, it's enablement depends on it's default settings.customPlugins
- map with additional third party plugin locations (as absolute
paths), never null, but might be emptyPlugin.isCorePlugin()
,
Plugin.isGloballyEnabled()
public Map<String,Boolean> getCustomPlugins()
IFindBugsEngine
(if
enabled), or which shouldn't be used (if disabled). If a plugin is not
included in the set, it's enablement depends on it's default settings.Plugin.isCorePlugin()
,
Plugin.isGloballyEnabled()
public Set<String> getCustomPlugins(boolean enabled)
IFindBugsEngine
. If a plugin is not included
in the set, it's enablement depends on it's default settings.Plugin.isCorePlugin()
,
Plugin.isGloballyEnabled()
public AnalysisFeatureSetting[] getAnalysisFeatureSettings()
Copyright © 2003–2015. All rights reserved.