public class PropertySource
extends java.lang.Object
IItemPropertySource
along with the object for which it is an item property source
and make it behave like an org.eclipse.ui.views.properties.IPropertySource
.Modifier and Type | Field and Description |
---|---|
protected IItemPropertySource |
itemPropertySource
This is the descriptor to which we will delegate all the
org.eclipse.ui.views.properties.IPropertySource methods. |
protected java.lang.Object |
object
This is the object for which this class is a property source.
|
Constructor and Description |
---|
PropertySource(java.lang.Object object,
IItemPropertySource itemPropertySource)
An instance is constructed from an object and its item property source.
|
Modifier and Type | Method and Description |
---|---|
protected IPropertyDescriptor |
createPropertyDescriptor(IItemPropertyDescriptor itemPropertyDescriptor) |
java.lang.Object |
getEditableValue()
This delegates to
IItemPropertySource.getEditableValue . |
IPropertyDescriptor[] |
getPropertyDescriptors()
This delegates to
IItemPropertySource.getPropertyDescriptors . |
java.lang.Object |
getPropertyValue(java.lang.Object propertyId)
This delegates to
IItemPropertyDescriptor.getPropertyValue . |
boolean |
isPropertyResettable(java.lang.Object propertyId)
This returns
true only when IItemPropertyDescriptor.isPropertySet
and IItemPropertyDescriptor.canSetProperty are true . |
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 . |
protected java.lang.Object object
protected IItemPropertySource itemPropertySource
org.eclipse.ui.views.properties.IPropertySource
methods.public PropertySource(java.lang.Object object, IItemPropertySource itemPropertySource)
public java.lang.Object getEditableValue()
IItemPropertySource.getEditableValue
.public IPropertyDescriptor[] getPropertyDescriptors()
IItemPropertySource.getPropertyDescriptors
.protected IPropertyDescriptor createPropertyDescriptor(IItemPropertyDescriptor itemPropertyDescriptor)
public java.lang.Object getPropertyValue(java.lang.Object propertyId)
IItemPropertyDescriptor.getPropertyValue
.public boolean isPropertySet(java.lang.Object propertyId)
IItemPropertyDescriptor.isPropertySet
.public boolean isPropertyResettable(java.lang.Object propertyId)
true
only when IItemPropertyDescriptor.isPropertySet
and IItemPropertyDescriptor.canSetProperty
are true
.public void resetPropertyValue(java.lang.Object propertyId)
IItemPropertyDescriptor.resetPropertyValue
.public void setPropertyValue(java.lang.Object propertyId, java.lang.Object value)
IItemPropertyDescriptor.setPropertyValue
.