public class OutlinePreferenceStore
extends PreferenceStore
PreferenceStore
implementation for storing the
Outline View filter settings.
The store is saved per workspace using a XML file
named FILE_NAME
(which is OutlinePreferences.xml
).
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
USE_FILTER |
Modifier and Type | Method and Description |
---|---|
static OutlinePreferenceStore |
getInstance() |
java.util.Map<java.lang.String,java.lang.Boolean> |
getSupressionMap() |
boolean |
getValue(java.lang.String key)
Gets the
boolean value for the given key. |
void |
load()
Loads the store content.
|
void |
save()
Saves the store content.
|
void |
setValue(java.lang.String key,
java.lang.Boolean value)
Sets or updates an entry.
|
public static final java.lang.String USE_FILTER
public static OutlinePreferenceStore getInstance()
public java.util.Map<java.lang.String,java.lang.Boolean> getSupressionMap()
supressionMap
. Keys are String
objects while the values are Boolean
objects.public void load() throws java.io.IOException
java.io.IOException
org.eclipse.jface.preference.PreferenceStore#load()
public void save() throws java.io.IOException
java.io.IOException
org.eclipse.jface.preference.PreferenceStore#save()
public boolean getValue(java.lang.String key)
boolean
value for the given key.key
- The key of the entry to be fetchedboolean
value of the key or
false
if the key is not known by the map.public void setValue(java.lang.String key, java.lang.Boolean value)
key
- The entries key to be used.value
- The entries value.