public class PrefsStorableEnvironment extends StorableEnvironment
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
fDeletedVariables
Set of 'deleted' variables (to be removed from the backing store)
|
ENVIRONMENT_ELEMENT_NAME| Modifier and Type | Method and Description |
|---|---|
IEnvironmentVariable |
createVariable(String name,
String value,
int op,
String delimiter) |
boolean |
deleteAll() |
IEnvironmentVariable |
deleteVariable(String name) |
protected void |
finalize() |
IEnvironmentVariable |
getVariable(String name) |
boolean |
isDirty()
Returns the "dirty" state of the environment.
|
void |
registerEnvironmentChangeListener(IEnvironmentChangeListener listener)
Adds a listener that will be notified of changes in environment variables.
|
void |
restoreDefaults() |
void |
serialize(ICStorageElement element)
Deprecated.
|
void |
setAppendContributedEnvironment(boolean append) |
void |
setAppendEnvironment(boolean append) |
void |
unregisterEnvironmentChangeListener(IEnvironmentChangeListener listener)
Removes an environment variables change listener.
|
appendContributedEnvironment, appendEnvironment, checkVariable, createVariable, createVariable, createVariable, createVriables, getVariables, isChanged, isReadOnly, setChanged, setDirty, setVariales@Deprecated public void serialize(ICStorageElement element)
serialize in class StorableEnvironmentelement - public IEnvironmentVariable createVariable(String name, String value, int op, String delimiter)
createVariable in class StorableEnvironmentpublic IEnvironmentVariable getVariable(String name)
getVariable in class StorableEnvironmentname - public IEnvironmentVariable deleteVariable(String name)
deleteVariable in class StorableEnvironmentpublic boolean deleteAll()
deleteAll in class StorableEnvironmentpublic void setAppendEnvironment(boolean append)
setAppendEnvironment in class StorableEnvironmentpublic void setAppendContributedEnvironment(boolean append)
setAppendContributedEnvironment in class StorableEnvironmentpublic void restoreDefaults()
restoreDefaults in class StorableEnvironmentpublic boolean isDirty()
StorableEnvironmenttrue, that means that the environment
is out of synch with the repository and the environment needs to be serialized.
false when the environment is serialized
by calling the serialize() methodisDirty in class StorableEnvironmentpublic void registerEnvironmentChangeListener(IEnvironmentChangeListener listener)
listener - - the listener to addpublic void unregisterEnvironmentChangeListener(IEnvironmentChangeListener listener)
listener - - the listener to remove.Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.