Class ItemPropertyDescriptorDecoratorImpl
- java.lang.Object
-
- tools.mdsd.library.emfeditutils.itempropertydescriptor.impl.ItemPropertyDescriptorWrapper
-
- tools.mdsd.library.emfeditutils.itempropertydescriptor.impl.ItemPropertyDescriptorDecoratorImpl
-
- All Implemented Interfaces:
IItemPropertyDescriptor
,ItemPropertyDescriptorDecorator
public class ItemPropertyDescriptorDecoratorImpl extends ItemPropertyDescriptorWrapper implements ItemPropertyDescriptorDecorator
Decorator class forIItemPropertyDescriptor
entities. It is possible to influence a predefined set of behaviors. Please refer to the setters for information about which behavior can be overridden.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.emf.edit.provider.IItemPropertyDescriptor
IItemPropertyDescriptor.OverrideableCommandOwner, IItemPropertyDescriptor.ValueHandler, IItemPropertyDescriptor.ValueHandlerProvider
-
-
Constructor Summary
Constructors Constructor Description ItemPropertyDescriptorDecoratorImpl(IItemPropertyDescriptor delegate)
Constructs the decorator for the given delegate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<?>
getChoiceOfValues(Object thisObject)
void
setValueChoiceCalculator(ValueChoiceCalculator transformator)
Set a calculator for value choices that intercepts the regular value selection process.-
Methods inherited from class tools.mdsd.library.emfeditutils.itempropertydescriptor.impl.ItemPropertyDescriptorWrapper
canSetProperty, getCategory, getDescription, getDisplayName, getFeature, getFilterFlags, getHelpContextIds, getId, getLabelProvider, getPropertyValue, isCompatibleWith, isMany, isMultiLine, isPropertySet, isSortChoices, resetPropertyValue, setPropertyValue
-
-
-
-
Constructor Detail
-
ItemPropertyDescriptorDecoratorImpl
public ItemPropertyDescriptorDecoratorImpl(IItemPropertyDescriptor delegate)
Constructs the decorator for the given delegate.- Parameters:
delegate
- The delegate to decorate.
-
-
Method Detail
-
setValueChoiceCalculator
public void setValueChoiceCalculator(ValueChoiceCalculator transformator)
Set a calculator for value choices that intercepts the regular value selection process.- Specified by:
setValueChoiceCalculator
in interfaceItemPropertyDescriptorDecorator
- Parameters:
transformator
- The intercepting calculator to use.- See Also:
ValueChoiceCalculator
-
getChoiceOfValues
public Collection<?> getChoiceOfValues(Object thisObject)
- Specified by:
getChoiceOfValues
in interfaceIItemPropertyDescriptor
- Overrides:
getChoiceOfValues
in classItemPropertyDescriptorWrapper
-
-