
Envoyé par
Aide d'eclipse
Sets the value of the persistent property of this resource identified by the given key. If the supplied value is null, the persistent property is removed from this resource. The change is made immediately on disk.
Persistent properties are intended to be used by plug-ins to store resource-specific information that should be persisted across platform sessions. The value of a persistent property is a string that must be short - 2KB or less in length. Unlike session properties, persistent properties are stored on disk and maintained across workspace shutdown and restart.
The qualifier part of the property name must be the unique identifier of the declaring plug-in (e.g. "com.example.plugin").
Parameters:
key - the qualified name of the property
value - the string value of the property, or null if the property is to be removed
Throws:
CoreException - if this method fails. Reasons include:
* This resource does not exist.
* This resource is not local.
* This resource is a project that is not open.
* Resource changes are disallowed during certain types of resource change event notification. See IResourceChangeEvent for more details.
See Also:
getPersistentProperty(QualifiedName), isLocal(int)
Partager