org.eclipse.core.internal.properties
Interface IPropertyManager

All Superinterfaces:
IManager
All Known Implementing Classes:
PropertyManager2

public interface IPropertyManager
extends IManager


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 resource)
          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.
 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.
 
Methods inherited from interface org.eclipse.core.internal.resources.IManager
shutdown, startup
 

Method Detail

closePropertyStore

void closePropertyStore(IResource target)
                        throws org.eclipse.core.runtime.CoreException
Closes the property store for a resource

Parameters:
target - The resource to close the property store for
Throws:
org.eclipse.core.runtime.CoreException

copy

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

Throws:
org.eclipse.core.runtime.CoreException

deleteProperties

void deleteProperties(IResource target,
                      int depth)
                      throws org.eclipse.core.runtime.CoreException
Deletes all properties for the given resource and its children.

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

Parameters:
target -
depth -
Throws:
org.eclipse.core.runtime.CoreException

deleteResource

void deleteResource(IResource target)
                    throws org.eclipse.core.runtime.CoreException
The resource is being deleted so permanently erase its properties.

Throws:
org.eclipse.core.runtime.CoreException

getProperty

java.lang.String getProperty(IResource target,
                             org.eclipse.core.runtime.QualifiedName name)
                             throws org.eclipse.core.runtime.CoreException
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").

Throws:
org.eclipse.core.runtime.CoreException

setProperty

void setProperty(IResource target,
                 org.eclipse.core.runtime.QualifiedName name,
                 java.lang.String value)
                 throws org.eclipse.core.runtime.CoreException
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").

Throws:
org.eclipse.core.runtime.CoreException

getProperties

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

Throws:
org.eclipse.core.runtime.CoreException