public class PropertySource
extends java.lang.Object
implements org.eclipse.ui.views.properties.IPropertySource
This class serves as an implementation of IPropertySource
with the
added functionality of wrapping some additional object. This acts to utilize
the properties view.
Constructor and Description |
---|
PropertySource(java.lang.Object obj)
The constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getEditableValue()
(non-Javadoc)
|
org.eclipse.ui.views.properties.IPropertyDescriptor[] |
getPropertyDescriptors()
The default implementation that provides one property descriptor.
|
java.lang.Object |
getPropertyValue(java.lang.Object id)
This function returns "Unknown value" for the one default property
|
java.lang.Object |
getWrappedData()
This function simply returns the object wrapped by an object of this
class.
|
boolean |
isPropertySet(java.lang.Object id) |
void |
resetPropertyValue(java.lang.Object id) |
void |
setPropertyValue(java.lang.Object id,
java.lang.Object value) |
public PropertySource(java.lang.Object obj)
The constructor
obj
- The object to be wrapped by this class
public java.lang.Object getWrappedData()
This function simply returns the object wrapped by an object of this class.
The object wrapped by an instance of this class
public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
The default implementation that provides one property descriptor.
getPropertyDescriptors
in interface org.eclipse.ui.views.properties.IPropertySource
The array of descriptors
IPropertySource.getPropertyDescriptors()
public java.lang.Object getEditableValue()
getEditableValue
in interface org.eclipse.ui.views.properties.IPropertySource
IPropertySource.getEditableValue()
public java.lang.Object getPropertyValue(java.lang.Object id)
getPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
id
- The object to identify this propertypublic boolean isPropertySet(java.lang.Object id)
isPropertySet
in interface org.eclipse.ui.views.properties.IPropertySource
public void resetPropertyValue(java.lang.Object id)
resetPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
public void setPropertyValue(java.lang.Object id, java.lang.Object value)
setPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource