Class ItemPropertyDescriptorDecorator2
- java.lang.Object
-
- org.scaledl.usageevolution.provider.ItemPropertyDescriptorDecorator2
-
- All Implemented Interfaces:
IItemPropertyDescriptor
public class ItemPropertyDescriptorDecorator2 extends Object implements 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 Modifier and Type Field Description protected IItemPropertyDescriptor
itemPropertyDescriptor
-
Constructor Summary
Constructors Constructor Description ItemPropertyDescriptorDecorator2(IItemPropertyDescriptor itemPropertyDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canSetProperty(Object object)
This does the delegated job of determining whether the property value from the given object supports set (and reset).String
getCategory(Object object)
This returns the group of properties into which this one should be placed.Collection<?>
getChoiceOfValues(Object object)
String
getDescription(Object object)
This returns the description to be displayed in the property sheet when this property is selected.String
getDisplayName(Object object)
This returns the name of the property to be displayed in the property sheet.Object
getFeature(Object object)
String[]
getFilterFlags(Object object)
This returns the flags used as filters in the property sheet.Object
getHelpContextIds(Object object)
String
getId(Object object)
This returns the interface name of this property.IItemLabelProvider
getLabelProvider(Object object)
This does the delegated job of getting the label provider for the given objectObject
getPropertyValue(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
isMany(Object object)
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 Detail
-
itemPropertyDescriptor
protected IItemPropertyDescriptor itemPropertyDescriptor
-
-
Constructor Detail
-
ItemPropertyDescriptorDecorator2
public ItemPropertyDescriptorDecorator2(IItemPropertyDescriptor itemPropertyDescriptor)
-
-
Method Detail
-
getCategory
public String getCategory(Object object)
This returns the group of properties into which this one should be placed.- Specified by:
getCategory
in interfaceIItemPropertyDescriptor
-
getDescription
public String getDescription(Object object)
This returns the description to be displayed in the property sheet when this property is selected.- Specified by:
getDescription
in interfaceIItemPropertyDescriptor
-
getDisplayName
public String getDisplayName(Object object)
This returns the name of the property to be displayed in the property sheet.- Specified by:
getDisplayName
in interfaceIItemPropertyDescriptor
-
getFilterFlags
public String[] getFilterFlags(Object object)
This returns the flags used as filters in the property sheet.- Specified by:
getFilterFlags
in interfaceIItemPropertyDescriptor
-
getId
public String getId(Object object)
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
public Object getHelpContextIds(Object object)
- Specified by:
getHelpContextIds
in interfaceIItemPropertyDescriptor
-
getLabelProvider
public IItemLabelProvider getLabelProvider(Object object)
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
public Object getPropertyValue(Object object)
This does the delegated job of getting the property value from the given object- Specified by:
getPropertyValue
in interfaceIItemPropertyDescriptor
-
isPropertySet
public boolean isPropertySet(Object object)
This does the delegated job of determining whether the property value from the given object is set.- Specified by:
isPropertySet
in interfaceIItemPropertyDescriptor
-
canSetProperty
public boolean canSetProperty(Object object)
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
public void resetPropertyValue(Object object)
This does the delegated job of resetting property value back to it's default value.- Specified by:
resetPropertyValue
in interfaceIItemPropertyDescriptor
-
setPropertyValue
public void setPropertyValue(Object object, Object value)
This does the delegated job of setting the property to the given value.- Specified by:
setPropertyValue
in interfaceIItemPropertyDescriptor
-
getFeature
public Object getFeature(Object object)
- Specified by:
getFeature
in interfaceIItemPropertyDescriptor
-
getChoiceOfValues
public Collection<?> getChoiceOfValues(Object object)
- Specified by:
getChoiceOfValues
in interfaceIItemPropertyDescriptor
-
isMany
public boolean isMany(Object object)
This does the delegated job of determining whether the property represents multiple values.- Specified by:
isMany
in interfaceIItemPropertyDescriptor
-
isMultiLine
public boolean isMultiLine(Object object)
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
public boolean isSortChoices(Object object)
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
-
-