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
-
Constructor Summary
ConstructorDescriptionItemPropertyDescriptorDecorator2
(IItemPropertyDescriptor itemPropertyDescriptor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canSetProperty
(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 objectboolean
isCompatibleWith
(Object object, Object anotherObject, IItemPropertyDescriptor anotherItemPropertyDescriptor) This indicates whether these two property descriptors are equal.boolean
This does the delegated job of determining whether the property represents multiple values.boolean
isMultiLine
(Object object) This does the delegated job of determining whether the property's value consists of multi-line text.boolean
isPropertySet
(Object object) This does the delegated job of determining whether the property value from the given object is set.boolean
isSortChoices
(Object object) This does the delegated job of determining the choices for this property should be sorted for display.void
resetPropertyValue
(Object object) This does the delegated job of resetting property value back to it's default value.void
setPropertyValue
(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:
getCategory
in interfaceIItemPropertyDescriptor
-
getDescription
This returns the description to be displayed in the property sheet when this property is selected.- Specified by:
getDescription
in interfaceIItemPropertyDescriptor
-
getDisplayName
This returns the name of the property to be displayed in the property sheet.- Specified by:
getDisplayName
in interfaceIItemPropertyDescriptor
-
getFilterFlags
This returns the flags used as filters in the property sheet.- Specified by:
getFilterFlags
in 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:
getId
in interfaceIItemPropertyDescriptor
-
getHelpContextIds
- Specified by:
getHelpContextIds
in interfaceIItemPropertyDescriptor
-
getLabelProvider
This does the delegated job of getting the label provider for the given object- Specified by:
getLabelProvider
in 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:
isCompatibleWith
in interfaceIItemPropertyDescriptor
-
getPropertyValue
This does the delegated job of getting the property value from the given object- Specified by:
getPropertyValue
in interfaceIItemPropertyDescriptor
-
isPropertySet
This does the delegated job of determining whether the property value from the given object is set.- Specified by:
isPropertySet
in interfaceIItemPropertyDescriptor
-
canSetProperty
This does the delegated job of determining whether the property value from the given object supports set (and reset).- Specified by:
canSetProperty
in interfaceIItemPropertyDescriptor
-
resetPropertyValue
This does the delegated job of resetting property value back to it's default value.- Specified by:
resetPropertyValue
in interfaceIItemPropertyDescriptor
-
setPropertyValue
This does the delegated job of setting the property to the given value.- Specified by:
setPropertyValue
in interfaceIItemPropertyDescriptor
-
getFeature
- Specified by:
getFeature
in interfaceIItemPropertyDescriptor
-
getChoiceOfValues
- Specified by:
getChoiceOfValues
in interfaceIItemPropertyDescriptor
-
isMany
This does the delegated job of determining whether the property represents multiple values.- Specified by:
isMany
in interfaceIItemPropertyDescriptor
-
isMultiLine
This does the delegated job of determining whether the property's value consists of multi-line text.- Specified by:
isMultiLine
in 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:
isSortChoices
in interfaceIItemPropertyDescriptor
- Since:
- 2.2.0
-