Interface IPreferenceManager
- All Known Implementing Classes:
AbstractPreferenceManager
,BslPreferenceManager
,BslPropertyPageManager
public interface IPreferenceManager
Interface that deals with write/read of the preferences
-
Method Summary
Modifier and TypeMethodDescriptionreadBoolean
(String key) Reads boolean preference with given keyreadBoolean
(String key, org.eclipse.core.runtime.preferences.IScopeContext scope) Reads boolean preference with given keyreadDefaultBoolean
(String key) Reads boolean preference with given keyreadDefaultInteger
(String key) Reads default integer preference with given keyreadDefaultString
(String key) Reads default string preference with given keyreadInteger
(String key) Reads integer preference with given keyreadInteger
(String key, org.eclipse.core.runtime.preferences.IScopeContext scope) Reads integer preference with given keyreadString
(String key) Reads string preference with given keyreadString
(String key, org.eclipse.core.runtime.preferences.IScopeContext scope) Reads string preference with given keyvoid
save()
Saves all written preferencesvoid
writeBoolean
(String key, Boolean value) Writes boolean value to the preferences with given keyvoid
writeBoolean
(String key, Boolean value, org.eclipse.core.runtime.preferences.IScopeContext scope) Writes boolean value to the preferences with given keyvoid
writeInteger
(String preferenceKey, Integer value) Writes integer value to the preferences with given keyvoid
writeInteger
(String preferenceKey, Integer value, org.eclipse.core.runtime.preferences.IScopeContext scope) Writes integer value to the preferences with given keyvoid
writeString
(String key, String value) Writes string value to the preferences with given keyvoid
writeString
(String key, String value, org.eclipse.core.runtime.preferences.IScopeContext scope) Writes string value to the preferences with given key
-
Method Details
-
writeBoolean
Writes boolean value to the preferences with given key- Parameters:
key
- The key of the preference, cannot benull
value
- The value of the preference, cannot benull
-
writeString
Writes string value to the preferences with given key- Parameters:
key
- The key of the preference, cannot benull
value
- The value of the preference, cannot benull
-
writeInteger
Writes integer value to the preferences with given key- Parameters:
key
- The key of the preference, cannot benull
value
- The value of the preference, cannot benull
-
readBoolean
Reads boolean preference with given key- Parameters:
key
- The key of the preference, cannot benull
- Returns:
- The boolean value associated to the given key, can be
null
if there is no preference with given key
-
readString
Reads string preference with given key- Parameters:
key
- The key of the preference, cannot benull
- Returns:
- The string value associated to the given key, can be
null
if there is no preference with given key
-
readInteger
Reads integer preference with given key- Parameters:
key
- The key of the preference, cannot benull
- Returns:
- The integer value associated to the given key, can be
null
if there is no preference with given key
-
readDefaultBoolean
Reads boolean preference with given key- Parameters:
key
- The key of the preference, cannot benull
- Returns:
- The default boolean value associated to the given key, can be
null
if there is no preference with given key
-
readDefaultString
Reads default string preference with given key- Parameters:
key
- The key of the preference, cannot benull
- Returns:
- The default string value associated to the given key, can be
null
if there is no preference with given key
-
readDefaultInteger
Reads default integer preference with given key- Parameters:
key
- The key of the preference, cannot benull
- Returns:
- The default integer value associated to the given key, can be
null
if there is no preference with given key
-
save
void save()Saves all written preferences -
readBoolean
Reads boolean preference with given key- Parameters:
key
- The key of the preference, cannot benull
context
- The context to get preference from, can benull
- Returns:
- The boolean value associated to the given key, can be
null
if there is no preference with given key
-
readString
Reads string preference with given key- Parameters:
key
- The key of the preference, cannot benull
context
- The context to get preference from, can benull
- Returns:
- The string value associated to the given key, can be
null
if there is no preference with given key
-
readInteger
Reads integer preference with given key- Parameters:
key
- The key of the preference, cannot benull
context
- The context to get preference from, can benull
- Returns:
- The integer value associated to the given key, can be
null
if there is no preference with given key
-
writeBoolean
void writeBoolean(String key, Boolean value, org.eclipse.core.runtime.preferences.IScopeContext scope) Writes boolean value to the preferences with given key- Parameters:
key
- The key of the preference, cannot benull
context
- The context to set preference to, can benull
value
- The value of the preference, cannot benull
-
writeString
void writeString(String key, String value, org.eclipse.core.runtime.preferences.IScopeContext scope) Writes string value to the preferences with given key- Parameters:
key
- The key of the preference, cannot benull
context
- The context to set preference to, can benull
value
- The value of the preference, cannot benull
-
writeInteger
void writeInteger(String preferenceKey, Integer value, org.eclipse.core.runtime.preferences.IScopeContext scope) Writes integer value to the preferences with given key- Parameters:
key
- The key of the preference, cannot benull
context
- The context to set preference to, can benull
value
- The value of the preference, cannot benull
-