public class RootPreferences extends EclipsePreferences
IEclipsePreferences.INodeChangeListener, IEclipsePreferences.IPreferenceChangeListener, IEclipsePreferences.NodeChangeEvent, IEclipsePreferences.PreferenceChangeEventchildren, DEBUG_PREFERENCE_GENERAL, DEBUG_PREFERENCE_GET, DEBUG_PREFERENCE_SET, debugPluginName, DEFAULT_PREFERENCES_DIRNAME, dirty, DOUBLE_SLASH, EMPTY_NODE_ARRAY, EMPTY_STRING, EMPTY_STRING_ARRAY, loading, name, parent, PATH_SEPARATOR, PREFS_FILE_EXTENSION, properties, removed, VERSION_KEY, VERSION_VALUE| Constructor and Description |
|---|
RootPreferences()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Forces any changes in the contents of this node and its descendants to
the persistent store.
|
protected IEclipsePreferences |
getChild(java.lang.String key,
java.lang.Object context) |
protected IEclipsePreferences[] |
getChildren() |
Preferences |
getNode(java.lang.String path,
boolean create) |
Preferences |
node(java.lang.String path)
Return the preferences node with the given path.
|
void |
sync()
Ensures that future reads from this node and its descendants reflect any
changes that were committed to the persistent store (from any VM) prior
to the
sync invocation. |
absolutePath, accept, addChild, addNodeChangeListener, addPreferenceChangeListener, checkRemoved, childExists, childrenNames, clear, computeChildren, computeLocation, convertFromProperties, convertToProperties, create, create, decodePath, encodePath, fireNodeEvent, firePreferenceEvent, get, getBoolean, getByteArray, getChild, getChildren, getDouble, getFloat, getInt, getLoadLevel, getLocation, getLong, getSegment, getSegmentCount, internalChildNames, internalCreate, internalFlush, internalGet, internalNode, internalPut, isAlreadyLoaded, isDirty, isLoading, keys, load, load, loaded, loadLegacy, loadProperties, log, makeDirty, makeRelative, name, nodeExists, parent, put, putBoolean, putByteArray, putDouble, putFloat, putInt, putLong, remove, removeNode, removeNode, removeNode, removeNodeChangeListener, removePreferenceChangeListener, removeTimestampFromTable, save, save, setLoading, shareStrings, toDeepDebugString, toString, writepublic void flush()
throws BackingStoreException
PreferencesOnce this method returns successfully, it is safe to assume that all changes made in the subtree rooted at this node prior to the method invocation have become permanent.
Implementations are free to flush changes into the persistent store at any time. They do not need to wait for this method to be called.
When a flush occurs on a newly created node, it is made persistent, as are any ancestors (and descendants) that have yet to be made persistent. Note however that any properties value changes in ancestors are not guaranteed to be made persistent.
flush in interface Preferencesflush in class EclipsePreferencesBackingStoreException - if this operation cannot be completed due
to a failure in the backing store, or inability to communicate
with it.Preferences.sync()protected IEclipsePreferences getChild(java.lang.String key, java.lang.Object context)
protected IEclipsePreferences[] getChildren()
public Preferences node(java.lang.String path)
IEclipsePreferencesnull.
See the spec of Preferences.node(String) for more details.
Note that if the node does not yet exist and is created, then the appropriate
IEclipsePreferences.NodeChangeEvent must be sent to listeners who are
registered at this node.
node in interface IEclipsePreferencesnode in interface Preferencesnode in class EclipsePreferencespath - the path of the nodePreferences.node(String),
IEclipsePreferences.NodeChangeEventpublic Preferences getNode(java.lang.String path, boolean create)
public void sync()
throws BackingStoreException
Preferencessync invocation. As a side-effect, forces any changes
in the contents of this node and its descendants to the persistent store,
as if the flush method had been invoked on this node.sync in interface Preferencessync in class EclipsePreferencesBackingStoreException - if this operation cannot be completed due
to a failure in the backing store, or inability to communicate
with it.Preferences.flush()