public class SharedPropertiesAdapter extends HashStructureAdapter
Subclasses should use getActivePropertyStorage(oracle.ide.model.Project, java.lang.String) to get
the active PropertyStorage object for their properties, either
those stored in the Project or in the Workspace.
_hash| Constructor and Description |
|---|
SharedPropertiesAdapter(HashStructure hashStructure) |
| Modifier and Type | Method and Description |
|---|---|
protected static PropertyStorage |
getActivePropertyStorage(Project project,
java.lang.String dataKey)
Returns a PropertyStorage object that wraps either the workspace
shared properties or the project properties, depending on where
the properties identified by
dataKey are stored. |
protected static PropertyStorage |
getActivePropertyStorage(Project project,
Workspace workspace,
java.lang.String dataKey)
Returns a PropertyStorage object that wraps either the workspace
shared properties or the project properties, depending on where
the properties identified by
dataKeyare stored. |
addStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEqualspublic SharedPropertiesAdapter(HashStructure hashStructure)
protected static final PropertyStorage getActivePropertyStorage(Project project, java.lang.String dataKey)
dataKey are stored.
Note: This method will throw an NullPointerException
if Project.getWorkspace() returns null, which happens if
the supplied project is a copy of the original project.
In that case use getActivePropertyStorage(Project, Workspace, String)
instead.
project - the Project whose properties are being retrieveddataKey - the key to the root HashStructure for your properties datajava.lang.IllegalStateException - if dataKey has not been
registered as shareable or if Project.getWorkspace() returns
nulljava.lang.NullPointerException - if any of the parameters are nullgetActivePropertyStorage(Project, Workspace, String),
SharedPropertiesManager.isUsingSharedProperties(Project, String)protected static final PropertyStorage getActivePropertyStorage(Project project, Workspace workspace, java.lang.String dataKey)
dataKeyare stored.project - the Project whose properties are being retrieved;
must not be nullworkspace - the Project's owning workspace; must not be nulldataKey - the key to the root HashStructure for your properties datajava.lang.IllegalStateException - if dataKey has not been
registered as shareablejava.lang.NullPointerException - if any of the parameters are null