Package 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
The FilePropertySource gives the extra information that is shown for files
- 
Field SummaryFields inherited from class org.eclipse.ui.views.properties.ResourcePropertySourceelement, errorMessage, FILE_NOT_EXIST_TEXT, FILE_NOT_FOUND, NOT_LOCAL_TEXT, propertyDescriptors, propertyDescriptorsLinkVariable, UNDEFINED_PATH_VARIABLE
- 
Constructor SummaryConstructorsConstructorDescriptionFilePropertySource(IFile file) Creates an property source for a file resource.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the list of property descriptors for this property source.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.ResourcePropertySourcegetEditableValue, getFile, isPropertySet, resetPropertyValue, setPropertyValue
- 
Constructor Details- 
FilePropertySourceCreates an property source for a file resource.- Parameters:
- file- the file resource
 
 
- 
- 
Method Details- 
getPropertyDescriptorsDescription copied from interface:IPropertySourceReturns the list of property descriptors for this property source. ThegetPropertyValueandsetPropertyValuemethods 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. - Specified by:
- getPropertyDescriptorsin interface- IPropertySource
- Overrides:
- getPropertyDescriptorsin class- ResourcePropertySource
- Returns:
- the property descriptors
 
- 
getPropertyValueDescription copied from interface:IPropertySourceReturns the value of the property with the given id if it has one. Returnsnullif the property's value isnullvalue or if this source does not have the specified property.- Specified by:
- getPropertyValuein interface- IPropertySource
- Overrides:
- getPropertyValuein class- ResourcePropertySource
- Parameters:
- key- the id of the property being set
- Returns:
- the value of the property, or null
- See Also:
 
 
-