|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.emf.edit.provider.ItemPropertyDescriptor
org.eclipse.emf.edit.provider.WrapperItemProvider.WrapperItemPropertyDescriptor
An item property descriptor for the single property of a wrapper for a simple value. This extends the base
implentation and substitutes the wrapper's owner for the selected object (the wrapper itself) in the call to getPropertyValue. Thus, the owner must be an EObject to use this class. The property's name,
description, settable flag, static image, category, and filter flags are obtained by calling out to various
template methods, so can be easily changed by subclassing.
| Nested Class Summary |
| Nested classes inherited from class org.eclipse.emf.edit.provider.ItemPropertyDescriptor |
ItemPropertyDescriptor.ItemDelegator, ItemPropertyDescriptor.PropertyValueWrapper |
| Nested classes inherited from class org.eclipse.emf.edit.provider.IItemPropertyDescriptor |
IItemPropertyDescriptor.OverrideableCommandOwner |
| Field Summary |
| Fields inherited from class org.eclipse.emf.edit.provider.ItemPropertyDescriptor |
adapterFactory, BOOLEAN_VALUE_IMAGE, category, commandOwner, description, displayName, ecorePackage, feature, filterFlags, GENERIC_VALUE_IMAGE, INTEGRAL_VALUE_IMAGE, isSettable, itemDelegator, multiLine, parentReferences, REAL_VALUE_IMAGE, resourceLocator, sortChoices, staticImage, TEXT_VALUE_IMAGE |
| Constructor Summary | |
WrapperItemProvider.WrapperItemPropertyDescriptor(ResourceLocator resourceLocator,
EStructuralFeature feature)
|
|
| Method Summary | |
boolean |
canSetProperty(Object object)
Substitutes the wrapper owner for the selected object and invokes the base implementation. |
protected Command |
createSetCommand(EditingDomain domain,
Object owner,
Object feature,
Object value)
Returns a command that will set the value on the model object. |
Collection |
getChoiceOfValues(Object object)
Substitutes the wrapper owner for the selected object and invokes the base implementation. |
Object |
getPropertyValue(Object object)
Substitutes the wrapper owner for the selected object and invokes the base implementation. |
protected Object |
getValue(EObject object,
EStructuralFeature feature)
Returns a value from a model object. |
boolean |
isMany(Object object)
Returns false, as the property only represents a single value, even if the feature is multi-valued. |
boolean |
isPropertySet(Object object)
Returns true, as the property of a value wrapper is always considered to be set. |
void |
resetPropertyValue(Object object)
Does nothing, as resetting the property of a value wrapper is not meaningful. |
void |
setPropertyValue(Object object,
Object value)
Sets the property value. |
protected void |
setValue(EObject object,
EStructuralFeature feature,
Object value)
Sets a value on a model object. |
| Methods inherited from class org.eclipse.emf.edit.provider.ItemPropertyDescriptor |
collectReachableObjectsOfType, createPropertyValueWrapper, getCategory, getComboBoxObjects, getCommandOwner, getCommandOwner, getDefaultValue, getDescription, getDisplayName, getEditingDomain, getFeature, getFilterFlags, getHelpContextIds, getId, getLabelProvider, getReachableObjectsOfType, isCompatibleWith, isMultiLine, isSortChoices, setCommandOwner |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WrapperItemProvider.WrapperItemPropertyDescriptor(ResourceLocator resourceLocator,
EStructuralFeature feature)
| Method Detail |
public Object getPropertyValue(Object object)
getValue.
getPropertyValue in interface IItemPropertyDescriptorgetPropertyValue in class ItemPropertyDescriptorpublic boolean canSetProperty(Object object)
canSetProperty in interface IItemPropertyDescriptorcanSetProperty in class ItemPropertyDescriptorpublic boolean isPropertySet(Object object)
true, as the property of a value wrapper is always considered to be set.
isPropertySet in interface IItemPropertyDescriptorisPropertySet in class ItemPropertyDescriptorpublic void resetPropertyValue(Object object)
resetPropertyValue in interface IItemPropertyDescriptorresetPropertyValue in class ItemPropertyDescriptor
public void setPropertyValue(Object object,
Object value)
createSetcommand is executed; otherwise, setValue is called to set the value.
setPropertyValue in interface IItemPropertyDescriptorsetPropertyValue in class ItemPropertyDescriptor
protected Object getValue(EObject object,
EStructuralFeature feature)
getValue in class ItemPropertyDescriptor
protected void setValue(EObject object,
EStructuralFeature feature,
Object value)
protected Command createSetCommand(EditingDomain domain,
Object owner,
Object feature,
Object value)
public boolean isMany(Object object)
false, as the property only represents a single value, even if the feature is multi-valued.
isMany in interface IItemPropertyDescriptorisMany in class ItemPropertyDescriptorpublic Collection getChoiceOfValues(Object object)
getChoiceOfValues in interface IItemPropertyDescriptorgetChoiceOfValues in class ItemPropertyDescriptor
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||