Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Platform
Release 3.5
Class FilePropertySource

  extended by
      extended by
All Implemented Interfaces:

public class FilePropertySource
extends ResourcePropertySource

The FilePropertySource gives the extra information that is shown for files

Field Summary
Fields inherited from class ResourcePropertySource
element, errorMessage, FILE_NOT_EXIST_TEXT, FILE_NOT_FOUND, NOT_LOCAL_TEXT, propertyDescriptors, propertyDescriptorsLinkVariable, UNDEFINED_PATH_VARIABLE
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 ResourcePropertySource
getEditableValue, getFile, 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)
Creates an property source for a file resource.

file - the file resource
Method Detail


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.

Specified by:
getPropertyDescriptors in interface IPropertySource
getPropertyDescriptors in class ResourcePropertySource
the property descriptors


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 the property's value is null value or if this source does not have the specified property.

Specified by:
getPropertyValue in interface IPropertySource
getPropertyValue in class ResourcePropertySource
key - the id of the property being set
the value of the property, or null
See Also:
IPropertySource.setPropertyValue(java.lang.Object, java.lang.Object)

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire