|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPropertySource2
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.
IPropertySource| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.eclipse.ui.views.properties.IPropertySource |
|---|
getEditableValue, getPropertyDescriptors, getPropertyValue, resetPropertyValue, setPropertyValue |
| Method Detail |
|---|
boolean isPropertyResettable(Object id)
id - the id of the property
true 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 IPropertySourceid - the id of the property
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,
and false if this source does not have the
specified propertyisPropertyResettable(Object),
IPropertySource.resetPropertyValue(Object)
|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.