Class WrapperItemDescriptor<T>
java.lang.Object
org.eclipse.emf.compare.rcp.internal.extension.impl.AbstractItemDescriptor<T>
org.eclipse.emf.compare.rcp.internal.extension.impl.WrapperItemDescriptor<T>
- Type Parameters:
T- On factory
- All Implemented Interfaces:
Comparable<IItemDescriptor<T>>,IItemDescriptor<T>
A
IItemDescriptor that wrap one instance of an item
and return the same item each time.-
Field Summary
Fields inherited from class org.eclipse.emf.compare.rcp.internal.extension.impl.AbstractItemDescriptor
EMPTY_STRING -
Constructor Summary
ConstructorsConstructorDescriptionWrapperItemDescriptor(String label, String description, int rank, String id, T instance) Constructor. -
Method Summary
Methods inherited from class org.eclipse.emf.compare.rcp.internal.extension.impl.AbstractItemDescriptor
compareTo, getDescription, getID, getItemFunction, getLabel, getRank, toString
-
Constructor Details
-
WrapperItemDescriptor
Constructor.- Parameters:
label-IItemDescriptor.getLabel()description-IItemDescriptor.getDescription()rank-IItemDescriptor.getRank()id-IItemDescriptor.getID()instance- Instance of the factory
-
-
Method Details
-
getItem
Create an item.- Returns:
- a item instance
-