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 TypeMethodDescriptionboolean
Returns whether the value of the property with the specified id is resettable to a default value.boolean
isPropertySet
(Object id) IPropertySource2
overrides the specification of thisIPropertySource
method to returntrue
instead offalse
if 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:
true
if the property with the specified id has a meaningful default value to which it can be resetted, andfalse
otherwise- See Also:
-
isPropertySet
IPropertySource2
overrides the specification of thisIPropertySource
method to returntrue
instead offalse
if the specified property does not have a meaningful default value.isPropertyResettable
will only be called ifisPropertySet
returnstrue
.Returns whether the value of the property with the given id has changed from its default value. Returns
false
if this source does not have the specified property.If the notion of default value is not meaningful for the specified property then
true
is returned.- Specified by:
isPropertySet
in interfaceIPropertySource
- Parameters:
id
- the id of the property- Returns:
true
if the value of the specified property has changed from its original default value,true
if the specified property does not have a meaningful default value, andfalse
if this source does not have the specified property- Since:
- 3.1
- See Also:
-