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
ConstructorsConstructorDescriptionDifferenceGroupDescriptorWrapper(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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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-IConfigurationElementused to instantiate theIDifferenceGroupProviderrank- Rank of the descriptorcomparisonType- Type of comparison the wrappedIDifferenceGroupProvidercan handle.
-
-
Method Details
-
getItem
Get an instance of an item.- Specified by:
getItemin interfaceIItemDescriptor<IDifferenceGroupProvider.Descriptor>- Returns:
- an instance of an item
-
getType
Return the type of Comparison this group provider can handle.- Specified by:
getTypein interfaceIDifferenceGroupProvider.Descriptor- Returns:
IDifferenceGroupProvider.ComparisonType
-
createGroupProvider
Creates a group provider.- Specified by:
createGroupProviderin interfaceIDifferenceGroupProvider.Descriptor- Returns:
- the newly created group provider or null if error.
-