|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.ui.views.properties.ResourcePropertySource | +--org.eclipse.ui.views.properties.FilePropertySource
The FilePropertySource gives the extra information that is shown for files
Field Summary |
Fields inherited from class org.eclipse.ui.views.properties.ResourcePropertySource |
element, errorMessage, NOT_LOCAL_TEXT, propertyDescriptors |
Constructor Summary | |
FilePropertySource(IFile file)
Creates an property source for a file resource. |
Method Summary | |
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. |
Methods inherited from class org.eclipse.ui.views.properties.ResourcePropertySource |
getEditableValue, isPropertySet, resetPropertyValue, setPropertyValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FilePropertySource(IFile file)
file
- the file resourceMethod Detail |
public IPropertyDescriptor[] getPropertyDescriptors()
IPropertySource
getPropertyValue
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 IPropertySource
getPropertyDescriptors
in class ResourcePropertySource
public Object getPropertyValue(Object key)
IPropertySource
null
if this source if the property's value is
null
value or if this source does not have the specified
property.
getPropertyValue
in interface IPropertySource
getPropertyValue
in class ResourcePropertySource
key
- the id of the property being set
null
IPropertySource.setPropertyValue(java.lang.Object, java.lang.Object)
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |