org.eclipse.core.internal.properties
Class PropertyManager2

java.lang.Object
  extended by org.eclipse.core.internal.properties.PropertyManager2
All Implemented Interfaces:
IPropertyManager, IManager

public class PropertyManager2
extends java.lang.Object
implements IPropertyManager

See Also:
IPropertyManager

Constructor Summary
PropertyManager2(Workspace workspace)
           
 
Method Summary
 void closePropertyStore(IResource target)
          Closes the property store for a resource
 void copy(IResource source, IResource destination, int depth)
          Copy all the properties of one resource to another.
 void deleteProperties(IResource target, int depth)
          Deletes all properties for the given resource and its children.
 void deleteResource(IResource target)
          The resource is being deleted so permanently erase its properties.
 java.util.Map getProperties(IResource target)
          Returns a map ( value: String>) containing all properties defined for the given resource.
 java.lang.String getProperty(IResource target, org.eclipse.core.runtime.QualifiedName name)
          Returns the value of the identified property on the given resource as maintained by this store.
 BucketTree getTree()
           
 java.io.File getVersionFile()
           
 void setProperty(IResource target, org.eclipse.core.runtime.QualifiedName name, java.lang.String value)
          Sets the value of the identified property on the given resource.
 void shutdown(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 void startup(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyManager2

public PropertyManager2(Workspace workspace)
Method Detail

closePropertyStore

public void closePropertyStore(IResource target)
                        throws org.eclipse.core.runtime.CoreException
Description copied from interface: IPropertyManager
Closes the property store for a resource

Specified by:
closePropertyStore in interface IPropertyManager
Parameters:
target - The resource to close the property store for
Throws:
org.eclipse.core.runtime.CoreException

copy

public void copy(IResource source,
                 IResource destination,
                 int depth)
          throws org.eclipse.core.runtime.CoreException
Description copied from interface: IPropertyManager
Copy all the properties of one resource to another. Both resources must have a property store available.

Specified by:
copy in interface IPropertyManager
Throws:
org.eclipse.core.runtime.CoreException

deleteProperties

public void deleteProperties(IResource target,
                             int depth)
                      throws org.eclipse.core.runtime.CoreException
Description copied from interface: IPropertyManager
Deletes all properties for the given resource and its children.

The subtree under the given resource is traversed to the supplied depth.

Specified by:
deleteProperties in interface IPropertyManager
Throws:
org.eclipse.core.runtime.CoreException

deleteResource

public void deleteResource(IResource target)
                    throws org.eclipse.core.runtime.CoreException
Description copied from interface: IPropertyManager
The resource is being deleted so permanently erase its properties.

Specified by:
deleteResource in interface IPropertyManager
Throws:
org.eclipse.core.runtime.CoreException

getProperties

public java.util.Map getProperties(IResource target)
                            throws org.eclipse.core.runtime.CoreException
Description copied from interface: IPropertyManager
Returns a map ( value: String>) containing all properties defined for the given resource. In case no properties can be found, returns an empty map.

Specified by:
getProperties in interface IPropertyManager
Throws:
org.eclipse.core.runtime.CoreException

getProperty

public java.lang.String getProperty(IResource target,
                                    org.eclipse.core.runtime.QualifiedName name)
                             throws org.eclipse.core.runtime.CoreException
Description copied from interface: IPropertyManager
Returns the value of the identified property on the given resource as maintained by this store.

The qualifier part of the property name must be the unique identifier of the declaring plug-in (e.g. "com.example.plugin").

Specified by:
getProperty in interface IPropertyManager
Throws:
org.eclipse.core.runtime.CoreException

getTree

public BucketTree getTree()

getVersionFile

public java.io.File getVersionFile()

setProperty

public void setProperty(IResource target,
                        org.eclipse.core.runtime.QualifiedName name,
                        java.lang.String value)
                 throws org.eclipse.core.runtime.CoreException
Description copied from interface: IPropertyManager
Sets the value of the identified property on the given resource.

The qualifier part of the property name must be the unique identifier of the declaring plug-in (e.g. "com.example.plugin").

Specified by:
setProperty in interface IPropertyManager
Throws:
org.eclipse.core.runtime.CoreException

shutdown

public void shutdown(org.eclipse.core.runtime.IProgressMonitor monitor)
              throws org.eclipse.core.runtime.CoreException
Specified by:
shutdown in interface IManager
Throws:
org.eclipse.core.runtime.CoreException

startup

public void startup(org.eclipse.core.runtime.IProgressMonitor monitor)
Specified by:
startup in interface IManager