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 StorableEnvironment
element
- public IEnvironmentVariable createVariable(String name, String value, int op, String delimiter)
createVariable
in class StorableEnvironment
public IEnvironmentVariable getVariable(String name)
getVariable
in class StorableEnvironment
name
- public IEnvironmentVariable deleteVariable(String name)
deleteVariable
in class StorableEnvironment
public boolean deleteAll()
deleteAll
in class StorableEnvironment
public void setAppendEnvironment(boolean append)
setAppendEnvironment
in class StorableEnvironment
public void setAppendContributedEnvironment(boolean append)
setAppendContributedEnvironment
in class StorableEnvironment
public void restoreDefaults()
restoreDefaults
in class StorableEnvironment
public boolean isDirty()
StorableEnvironment
true
, 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 StorableEnvironment
public 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.