public abstract class StorableEnvironmentLoader extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
StorableEnvironmentLoader.ISerializeInfo
this interface represents the preference node and the preference name
that are used for holding the environment data
|
Constructor and Description |
---|
StorableEnvironmentLoader() |
Modifier and Type | Method and Description |
---|---|
StorableEnvironment |
cloneEnvironmentWithContext(Object context,
StorableEnvironment base,
boolean isReadOnly)
Creates the StorableEnvironment clone for a new configuration, say,
based on an existing configuration
|
protected abstract StorableEnvironmentLoader.ISerializeInfo |
getSerializeInfo(Object context)
this method should return the ISerializeInfo representing the information
of where the variable should be stored and loaded
If the given context is not supported this method should return null
|
protected StorableEnvironment |
loadEnvironment(Object context,
boolean readOnly)
Loads the environment from the context's
StorableEnvironmentLoader.ISerializeInfo . |
protected void |
storeEnvironment(StorableEnvironment env,
Object context,
boolean force,
boolean flush) |
public StorableEnvironment cloneEnvironmentWithContext(Object context, StorableEnvironment base, boolean isReadOnly)
context
- the configuration / workspace context the configuration is to be cloned forbase
- the base environment to copyprotected abstract StorableEnvironmentLoader.ISerializeInfo getSerializeInfo(Object context)
protected StorableEnvironment loadEnvironment(Object context, boolean readOnly)
StorableEnvironmentLoader.ISerializeInfo
.
NB the environment in the StorableEnvironmentLoader.ISerializeInfo
need not be available
yet. The StorableEnvironmentLoader.ISerializeInfo
may be held by the StorableEnvironment
to pick up any external changes in the environment.context
- readOnly
- protected void storeEnvironment(StorableEnvironment env, Object context, boolean force, boolean flush) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.