Package org.eclipse.ui.views.properties
Interface IPropertySource2
- All Superinterfaces:
IPropertySource
Extension to the standard
IPropertySource interface.
This interface provides extended API to IPropertySource to
allow an easier indication of properties that have a default value and can be
resetted.
- Since:
- 3.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the value of the property with the specified id is resettable to a default value.booleanisPropertySet(Object id) IPropertySource2overrides the specification of thisIPropertySourcemethod to returntrueinstead offalseif the specified property does not have a meaningful default value.Methods inherited from interface org.eclipse.ui.views.properties.IPropertySource
getEditableValue, getPropertyDescriptors, getPropertyValue, resetPropertyValue, setPropertyValue
-
Method Details
-
isPropertyResettable
Returns whether the value of the property with the specified id is resettable to a default value.- Parameters:
id- the id of the property- Returns:
trueif the property with the specified id has a meaningful default value to which it can be resetted, andfalseotherwise- See Also:
-
isPropertySet
IPropertySource2overrides the specification of thisIPropertySourcemethod to returntrueinstead offalseif the specified property does not have a meaningful default value.isPropertyResettablewill only be called ifisPropertySetreturnstrue.Returns whether the value of the property with the given id has changed from its default value. Returns
falseif this source does not have the specified property.If the notion of default value is not meaningful for the specified property then
trueis returned.- Specified by:
isPropertySetin interfaceIPropertySource- Parameters:
id- the id of the property- Returns:
trueif the value of the specified property has changed from its original default value,trueif the specified property does not have a meaningful default value, andfalseif this source does not have the specified property- Since:
- 3.1
- See Also:
-