org.eclipse.emf.edit.ui.provider
Class PropertySource

java.lang.Object
  |
  +--org.eclipse.emf.edit.ui.provider.PropertySource
All Implemented Interfaces:
org.eclipse.ui.views.properties.IPropertySource

public class PropertySource
extends java.lang.Object
implements org.eclipse.ui.views.properties.IPropertySource

This is used to encapsulate an IItemPropertySource along with the object for which it is an item property source and make it behave like an IPropertySource.


Field Summary
protected  IItemPropertySource itemPropertySource
          This is the descriptor to which we will delegate all the IPropertySource methods.
protected  java.lang.Object object
          This is the object for which this class is a property source.
 
Constructor Summary
PropertySource(java.lang.Object object, IItemPropertySource itemPropertySource)
          An instance is constructed from an object and its item property source.
 
Method Summary
protected  org.eclipse.ui.views.properties.IPropertyDescriptor createPropertyDescriptor(IItemPropertyDescriptor itemPropertyDescriptor)
           
 java.lang.Object getEditableValue()
          This delegates to IItemPropertySource.getEditableValue.
 org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
          This delegates to IItemPropertySource.getPropertyDescriptors.
 java.lang.Object getPropertyValue(java.lang.Object propertyId)
          This delegates to IItemPropertyDescriptor.getPropertyValue.
 boolean isPropertySet(java.lang.Object propertyId)
          This delegates to IItemPropertyDescriptor.isPropertySet.
 void resetPropertyValue(java.lang.Object propertyId)
          This delegates to IItemPropertyDescriptor.resetPropertyValue.
 void setPropertyValue(java.lang.Object propertyId, java.lang.Object value)
          This delegates to IItemPropertyDescriptor.setPropertyValue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

object

protected java.lang.Object object
This is the object for which this class is a property source.

itemPropertySource

protected IItemPropertySource itemPropertySource
This is the descriptor to which we will delegate all the IPropertySource methods.
Constructor Detail

PropertySource

public PropertySource(java.lang.Object object,
                      IItemPropertySource itemPropertySource)
An instance is constructed from an object and its item property source.
Method Detail

getEditableValue

public java.lang.Object getEditableValue()
This delegates to IItemPropertySource.getEditableValue.
Specified by:
getEditableValue in interface org.eclipse.ui.views.properties.IPropertySource

getPropertyDescriptors

public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
This delegates to IItemPropertySource.getPropertyDescriptors.
Specified by:
getPropertyDescriptors in interface org.eclipse.ui.views.properties.IPropertySource

createPropertyDescriptor

protected org.eclipse.ui.views.properties.IPropertyDescriptor createPropertyDescriptor(IItemPropertyDescriptor itemPropertyDescriptor)

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object propertyId)
This delegates to IItemPropertyDescriptor.getPropertyValue.
Specified by:
getPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource

isPropertySet

public boolean isPropertySet(java.lang.Object propertyId)
This delegates to IItemPropertyDescriptor.isPropertySet.
Specified by:
isPropertySet in interface org.eclipse.ui.views.properties.IPropertySource

resetPropertyValue

public void resetPropertyValue(java.lang.Object propertyId)
This delegates to IItemPropertyDescriptor.resetPropertyValue.
Specified by:
resetPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource

setPropertyValue

public void setPropertyValue(java.lang.Object propertyId,
                             java.lang.Object value)
This delegates to IItemPropertyDescriptor.setPropertyValue.
Specified by:
setPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource

Copyright 2001-2003 IBM Corporation and others.
All Rights Reserved.