Class ItemPropertyDescriptorUtils
java.lang.Object
tools.mdsd.library.emfeditutils.itempropertydescriptor.ItemPropertyDescriptorUtils
Collection of various utility function to handle
IItemPropertyDescriptor
entities.-
Method Summary
Modifier and TypeMethodDescriptiondecorateLastDescriptor
(List<IItemPropertyDescriptor> descriptors) Replace the last descriptor of a given list with a decorated descriptor.
-
Method Details
-
decorateLastDescriptor
public static ItemPropertyDescriptorDecorator decorateLastDescriptor(List<IItemPropertyDescriptor> descriptors) Replace the last descriptor of a given list with a decorated descriptor.- Parameters:
descriptors
- The list ofIItemPropertyDescriptor
entities.- Returns:
- The decorated version of the last
IItemPropertyDescriptor
from the given list. - Throws:
IllegalArgumentException
- Thrown if the given list ofIItemPropertyDescriptor
entities is empty.- See Also:
-