Interface IPreferenceManager
-
- All Known Implementing Classes:
AbstractPreferenceManager
,BslPreferenceManager
,BslPropertyPageManager
public interface IPreferenceManager
Interface that deals with write/read of the preferences
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Boolean
readBoolean(String key)
Reads boolean preference with given keyBoolean
readBoolean(String key, org.eclipse.core.runtime.preferences.IScopeContext scope)
Reads boolean preference with given keyBoolean
readDefaultBoolean(String key)
Reads boolean preference with given keyInteger
readDefaultInteger(String key)
Reads default integer preference with given keyString
readDefaultString(String key)
Reads default string preference with given keyInteger
readInteger(String key)
Reads integer preference with given keyInteger
readInteger(String key, org.eclipse.core.runtime.preferences.IScopeContext scope)
Reads integer preference with given keyString
readString(String key)
Reads string preference with given keyString
readString(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 Detail
-
writeBoolean
void writeBoolean(String key, Boolean value)
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
void writeString(String key, String value)
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
void writeInteger(String preferenceKey, Integer value)
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
Boolean readBoolean(String key)
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
String readString(String key)
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
Integer readInteger(String key)
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
Boolean readDefaultBoolean(String key)
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
String readDefaultString(String key)
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
Integer readDefaultInteger(String key)
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
Boolean readBoolean(String key, org.eclipse.core.runtime.preferences.IScopeContext scope)
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
String readString(String key, org.eclipse.core.runtime.preferences.IScopeContext scope)
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
Integer readInteger(String key, org.eclipse.core.runtime.preferences.IScopeContext scope)
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
-
-