public class ThreeWayComparisonGroupProvider extends AbstractDifferenceGroupProvider
IDifferenceGroupProvider
will be used to
group the differences by their side
: left, right and conflicts.Modifier and Type | Class and Description |
---|---|
static class |
ThreeWayComparisonGroupProvider.ConflictsGroupImpl
Specialized
BasicDifferenceGroupImpl for Conflicts. |
IDifferenceGroupProvider.ComparisonType, IDifferenceGroupProvider.Descriptor
Adapter.Internal
activeByDefault, label
target
Constructor and Description |
---|
ThreeWayComparisonGroupProvider() |
Modifier and Type | Method and Description |
---|---|
protected Collection<? extends IDifferenceGroup> |
buildGroups(Comparison comparison2)
Builds the groups for this comparison.
|
boolean |
isEnabled(IComparisonScope scope,
Comparison comparison)
Returns the activation condition based on the scope and comparison objects.
|
defaultSelected, dispose, getComparison, getCrossReferenceAdapter, getGroups, getLabel, getTreeNodes, groupsAreBuilt, isAdapterForType, setDefaultSelected, setLabel
getTarget, notifyChanged, setTarget, unsetTarget
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTarget, notifyChanged, setTarget
public boolean isEnabled(IComparisonScope scope, Comparison comparison)
isEnabled
in interface IDifferenceGroupProvider
isEnabled
in class AbstractDifferenceGroupProvider
scope
- The scope on which the group provider will be applied.comparison
- The comparison which is to be displayed in the structural view.org.eclipse.emf.compare.rcp.ui.structuremergeviewer.groups.IDifferenceGroupProvider#isEnabled(org
.eclipse.emf.compare.scope.IComparisonScope, org.eclipse.emf.compare.Comparison)
protected Collection<? extends IDifferenceGroup> buildGroups(Comparison comparison2)
IDifferenceGroupProvider2
needs to override this
method to provid groups.buildGroups
in class AbstractDifferenceGroupProvider
comparison2
- comparison against which the groups will be built.IDifferenceGroup
.org.eclipse.emf.compare.rcp.ui.internal.structuremergeviewer.groups.impl.AbstractBuildingDifferenceGroupProvider#buildGroups(org.eclipse.emf.compare.Comparison)
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.