public class SimpleProperty
extends java.lang.Object
Constructor and Description |
---|
SimpleProperty(java.lang.String id,
java.lang.String displayName,
java.lang.String category,
java.lang.Object value)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Gets the String ID used for the SimpleProperty.
|
org.eclipse.ui.views.properties.PropertyDescriptor |
getPropertyDescriptor()
Gets a PropertyDescriptor for the SimpleProperty.
|
java.lang.Object |
getValue()
Gets the current value of the property.
|
public SimpleProperty(java.lang.String id, java.lang.String displayName, java.lang.String category, java.lang.Object value)
id
- The ID of the property. This is used to construct an
IPropertyDescriptor and should be unique within the
IPropertySource.displayName
- The text displayed for the IPropertyDescriptor. This does not
need to be unique.category
- The category under which the property will appear. If null,
the property should default to "Misc". If no categories are
specified in the IPropertySource, then "Misc" will not appear.value
- The value of the property. If null, you may want to override
getValue().public org.eclipse.ui.views.properties.PropertyDescriptor getPropertyDescriptor()
public java.lang.String getId()
public java.lang.Object getValue()