Class DifferenceGroupDescriptorWrapper
java.lang.Object
org.eclipse.emf.compare.rcp.internal.extension.impl.AbstractItemDescriptor<IDifferenceGroupProvider.Descriptor>
org.eclipse.emf.compare.rcp.ui.internal.structuremergeviewer.groups.impl.DifferenceGroupDescriptorWrapper
- All Implemented Interfaces:
Comparable<IItemDescriptor<IDifferenceGroupProvider.Descriptor>>
,IItemDescriptor<IDifferenceGroupProvider.Descriptor>
,IDifferenceGroupProvider.Descriptor
public class DifferenceGroupDescriptorWrapper
extends AbstractItemDescriptor<IDifferenceGroupProvider.Descriptor>
implements IDifferenceGroupProvider.Descriptor
Implementation of
IDifferenceGroupProvider.Descriptor
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.compare.rcp.ui.structuremergeviewer.groups.IDifferenceGroupProvider.Descriptor
IDifferenceGroupProvider.Descriptor.Registry
-
Field Summary
Fields inherited from class org.eclipse.emf.compare.rcp.internal.extension.impl.AbstractItemDescriptor
EMPTY_STRING
-
Constructor Summary
ConstructorDescriptionDifferenceGroupDescriptorWrapper
(String label, String description, org.eclipse.core.runtime.IConfigurationElement elem, int rank, IDifferenceGroupProvider.ComparisonType comparisonType) Constructor. -
Method Summary
Methods inherited from class org.eclipse.emf.compare.rcp.internal.extension.impl.AbstractItemDescriptor
compareTo, getDescription, getID, getItemFunction, getLabel, getRank, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.emf.compare.rcp.ui.structuremergeviewer.groups.IDifferenceGroupProvider.Descriptor
getDescription, getLabel, getRank
-
Constructor Details
-
DifferenceGroupDescriptorWrapper
public DifferenceGroupDescriptorWrapper(String label, String description, org.eclipse.core.runtime.IConfigurationElement elem, int rank, IDifferenceGroupProvider.ComparisonType comparisonType) Constructor.- Parameters:
label
- Human-readable label of the underlying group provider.description
- A more detailed description that can be displayed to the user for this group.elem
-IConfigurationElement
used to instantiate theIDifferenceGroupProvider
rank
- Rank of the descriptorcomparisonType
- Type of comparison the wrappedIDifferenceGroupProvider
can handle.
-
-
Method Details
-
getItem
Get an instance of an item.- Specified by:
getItem
in interfaceIItemDescriptor<IDifferenceGroupProvider.Descriptor>
- Returns:
- an instance of an item
-
getType
Return the type of Comparison this group provider can handle.- Specified by:
getType
in interfaceIDifferenceGroupProvider.Descriptor
- Returns:
IDifferenceGroupProvider.ComparisonType
-
createGroupProvider
Creates a group provider.- Specified by:
createGroupProvider
in interfaceIDifferenceGroupProvider.Descriptor
- Returns:
- the newly created group provider or null if error.
-