public interface IPropertySource2 extends IPropertySource
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.
IPropertySource
Modifier and Type | Method and Description |
---|---|
boolean |
isPropertyResettable(Object id)
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 this IPropertySource
method to return true instead of false if the specified
property does not have a meaningful default value. |
getEditableValue, getPropertyDescriptors, getPropertyValue, resetPropertyValue, setPropertyValue
boolean isPropertyResettable(Object id)
id
- the id of the propertytrue
if the property with the specified id has a
meaningful default value to which it can be resetted, and
false
otherwiseIPropertySource.resetPropertyValue(Object)
,
IPropertySource.isPropertySet(Object)
boolean isPropertySet(Object id)
IPropertySource2
overrides the specification of this IPropertySource
method to return true
instead of false
if the specified
property does not have a meaningful default value.
isPropertyResettable
will only be called if isPropertySet
returns
true
.
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.
isPropertySet
in interface IPropertySource
id
- the id of the propertytrue
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,
and false
if this source does not have the
specified propertyisPropertyResettable(Object)
,
IPropertySource.resetPropertyValue(Object)
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.