Package org.eclipse.ui.views.properties
Interface IPropertySource2
-
- All Superinterfaces:
IPropertySource
public interface IPropertySource2 extends IPropertySource
Extension to the standardIPropertySourceinterface.This interface provides extended API to
IPropertySourceto allow an easier indication of properties that have a default value and can be resetted.- Since:
- 3.0
- See Also:
IPropertySource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisPropertyResettable(Object id)Returns 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 Detail
-
isPropertyResettable
boolean isPropertyResettable(Object id)
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:
IPropertySource.resetPropertyValue(Object),IPropertySource.isPropertySet(Object)
-
isPropertySet
boolean isPropertySet(Object id)
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:
isPropertyResettable(Object),IPropertySource.resetPropertyValue(Object)
-
-