public class DefaultValidatorPreferences extends java.lang.Object implements ValidatorPreferences
ValidatorPreferences
implementations. Stores settings in
preferences.Constructor and Description |
---|
DefaultValidatorPreferences() |
Modifier and Type | Method and Description |
---|---|
boolean |
loadEnabled(java.lang.String key,
boolean defaultEnabled)
Loads the stored "enabled" attribute.
|
void |
saveEnabled(java.lang.String key,
boolean enabled)
Saves the "enabled" attribute.
|
public boolean loadEnabled(@NotNull java.lang.String key, boolean defaultEnabled)
loadEnabled
in interface ValidatorPreferences
key
- the validator's keydefaultEnabled
- whether the validator is enabled by defaultpublic void saveEnabled(@NotNull java.lang.String key, boolean enabled)
saveEnabled
in interface ValidatorPreferences
key
- the validator's keyenabled
- the enabled state