public class UserEditablePreferences extends Object
GeneiousPlugin.getPluginPreferences()| Constructor and Description |
|---|
UserEditablePreferences() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getBooleanSettingIfNotPresent(String key,
boolean defaultValue)
Gets a boolean value from user editable preferences, adding an entry if it doesn't already exist.
|
static int |
getIntSettingIfNotPresent(String key,
int defaultValue)
Gets an integer value from user editable preferences, adding an entry if it doesn't already exist.
|
static Preferences |
getUserEditablePreferences() |
public static Preferences getUserEditablePreferences()
public static int getIntSettingIfNotPresent(String key, int defaultValue)
key - the preference key to get the value for. In order to ensure this is unique it is recommended it start with a fully qualified class name.defaultValue - the default value for this preferencepublic static boolean getBooleanSettingIfNotPresent(String key, boolean defaultValue)
key - the preference key to get the value for. In order to ensure this is unique it is recommended it start with a fully qualified class name.defaultValue - the default value for this preference