public class FilePropertySource extends ResourcePropertySource
element, errorMessage, FILE_NOT_EXIST_TEXT, FILE_NOT_FOUND, NOT_LOCAL_TEXT, propertyDescriptors, propertyDescriptorsLinkVariable, UNDEFINED_PATH_VARIABLE| Constructor and Description |
|---|
FilePropertySource(IFile file)
Creates an property source for a file resource.
|
| Modifier and Type | Method and Description |
|---|---|
IPropertyDescriptor[] |
getPropertyDescriptors()
Returns the list of property descriptors for this property source.
|
Object |
getPropertyValue(Object key)
Returns the value of the property with the given id if it has one.
|
getEditableValue, getFile, isPropertySet, resetPropertyValue, setPropertyValuepublic FilePropertySource(IFile file)
file - the file resourcepublic IPropertyDescriptor[] getPropertyDescriptors()
IPropertySourcegetPropertyValue and setPropertyValue
methods are used to read and write the actual property values by
specifying the property ids from these property descriptors.
Implementors should cache the descriptors as they will be asked for the descriptors with any edit/update. Since descriptors provide cell editors, returning the same descriptors if possible allows for efficient updating.
getPropertyDescriptors in interface IPropertySourcegetPropertyDescriptors in class ResourcePropertySourcepublic Object getPropertyValue(Object key)
IPropertySourcenull if the property's value is null
value or if this source does not have the specified property.getPropertyValue in interface IPropertySourcegetPropertyValue in class ResourcePropertySourcekey - the id of the property being setnullIPropertySource.setPropertyValue(java.lang.Object, java.lang.Object)Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.