Class FilePropertySource

    • Constructor Detail

      • FilePropertySource

        public FilePropertySource​(IFile file)
        Creates an property source for a file resource.
        Parameters:
        file - the file resource
    • Method Detail

      • 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.

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