Class ItemPropertyDescriptorDecorator2
java.lang.Object
org.scaledl.usageevolution.provider.ItemPropertyDescriptorDecorator2
- All Implemented Interfaces:
IItemPropertyDescriptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.edit.provider.IItemPropertyDescriptor
IItemPropertyDescriptor.OverrideableCommandOwner, IItemPropertyDescriptor.ValueHandler, IItemPropertyDescriptor.ValueHandlerProvider -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionItemPropertyDescriptorDecorator2(IItemPropertyDescriptor itemPropertyDescriptor) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSetProperty(Object object) This does the delegated job of determining whether the property value from the given object supports set (and reset).getCategory(Object object) This returns the group of properties into which this one should be placed.Collection<?>getChoiceOfValues(Object object) getDescription(Object object) This returns the description to be displayed in the property sheet when this property is selected.getDisplayName(Object object) This returns the name of the property to be displayed in the property sheet.getFeature(Object object) String[]getFilterFlags(Object object) This returns the flags used as filters in the property sheet.getHelpContextIds(Object object) This returns the interface name of this property.getLabelProvider(Object object) This does the delegated job of getting the label provider for the given objectgetPropertyValue(Object object) This does the delegated job of getting the property value from the given objectbooleanisCompatibleWith(Object object, Object anotherObject, IItemPropertyDescriptor anotherItemPropertyDescriptor) This indicates whether these two property descriptors are equal.booleanThis does the delegated job of determining whether the property represents multiple values.booleanisMultiLine(Object object) This does the delegated job of determining whether the property's value consists of multi-line text.booleanisPropertySet(Object object) This does the delegated job of determining whether the property value from the given object is set.booleanisSortChoices(Object object) This does the delegated job of determining the choices for this property should be sorted for display.voidresetPropertyValue(Object object) This does the delegated job of resetting property value back to it's default value.voidsetPropertyValue(Object object, Object value) This does the delegated job of setting the property to the given value.
-
Field Details
-
itemPropertyDescriptor
-
-
Constructor Details
-
ItemPropertyDescriptorDecorator2
-
-
Method Details
-
getCategory
This returns the group of properties into which this one should be placed.- Specified by:
getCategoryin interfaceIItemPropertyDescriptor
-
getDescription
This returns the description to be displayed in the property sheet when this property is selected.- Specified by:
getDescriptionin interfaceIItemPropertyDescriptor
-
getDisplayName
This returns the name of the property to be displayed in the property sheet.- Specified by:
getDisplayNamein interfaceIItemPropertyDescriptor
-
getFilterFlags
This returns the flags used as filters in the property sheet.- Specified by:
getFilterFlagsin interfaceIItemPropertyDescriptor
-
getId
This returns the interface name of this property. This is the key that is passed around and must uniquely identify this descriptor.- Specified by:
getIdin interfaceIItemPropertyDescriptor
-
getHelpContextIds
- Specified by:
getHelpContextIdsin interfaceIItemPropertyDescriptor
-
getLabelProvider
This does the delegated job of getting the label provider for the given object- Specified by:
getLabelProviderin interfaceIItemPropertyDescriptor
-
isCompatibleWith
public boolean isCompatibleWith(Object object, Object anotherObject, IItemPropertyDescriptor anotherItemPropertyDescriptor) This indicates whether these two property descriptors are equal. It's not really clear to me how this is meant to be used, but it's a little bit like an equals test.- Specified by:
isCompatibleWithin interfaceIItemPropertyDescriptor
-
getPropertyValue
This does the delegated job of getting the property value from the given object- Specified by:
getPropertyValuein interfaceIItemPropertyDescriptor
-
isPropertySet
This does the delegated job of determining whether the property value from the given object is set.- Specified by:
isPropertySetin interfaceIItemPropertyDescriptor
-
canSetProperty
This does the delegated job of determining whether the property value from the given object supports set (and reset).- Specified by:
canSetPropertyin interfaceIItemPropertyDescriptor
-
resetPropertyValue
This does the delegated job of resetting property value back to it's default value.- Specified by:
resetPropertyValuein interfaceIItemPropertyDescriptor
-
setPropertyValue
This does the delegated job of setting the property to the given value.- Specified by:
setPropertyValuein interfaceIItemPropertyDescriptor
-
getFeature
- Specified by:
getFeaturein interfaceIItemPropertyDescriptor
-
getChoiceOfValues
- Specified by:
getChoiceOfValuesin interfaceIItemPropertyDescriptor
-
isMany
This does the delegated job of determining whether the property represents multiple values.- Specified by:
isManyin interfaceIItemPropertyDescriptor
-
isMultiLine
This does the delegated job of determining whether the property's value consists of multi-line text.- Specified by:
isMultiLinein interfaceIItemPropertyDescriptor- Since:
- 2.2.0
-
isSortChoices
This does the delegated job of determining the choices for this property should be sorted for display.- Specified by:
isSortChoicesin interfaceIItemPropertyDescriptor- Since:
- 2.2.0
-