org.eclipse.ui.views.properties
Class FilePropertySource
java.lang.Object
|
+--org.eclipse.ui.views.properties.ResourcePropertySource
|
+--org.eclipse.ui.views.properties.FilePropertySource
- All Implemented Interfaces:
- IPropertySource
- public class FilePropertySource
- extends ResourcePropertySource
The FilePropertySource gives the extra information that is shown for files
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilePropertySource
public FilePropertySource(IFile file)
- Creates an property source for a file resource.
- Parameters:
file
- the file resource
getPropertyDescriptors
public IPropertyDescriptor[] getPropertyDescriptors()
- Description copied from interface:
IPropertySource
- Returns the list of property descriptors for this property source.
The
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.
- Overrides:
getPropertyDescriptors
in class ResourcePropertySource
- Following copied from interface:
org.eclipse.ui.views.properties.IPropertySource
- Returns:
- the property descriptors
getPropertyValue
public Object getPropertyValue(Object key)
- Description copied from interface:
IPropertySource
- Returns the value of the property with the given id if it has one.
Returns
null
if this source if the property's value is
null
value or if this source does not have the specified
property.
- Overrides:
getPropertyValue
in class ResourcePropertySource
- Following copied from interface:
org.eclipse.ui.views.properties.IPropertySource
- Parameters:
id
- the id of the property being set- Returns:
- the value of the property, or
null
- See Also:
IPropertySource.setPropertyValue(java.lang.Object, java.lang.Object)
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.