public class ThreeWayComparisonGroupProvider extends AbstractDifferenceGroupProvider
IDifferenceGroupProvider
will be used to
group the differences by their side
: left, right and conflicts.
The table below describes the location of a diff depending on its status and that of its refining diffs
(whether all or some of them are in a real/pseudo conflict).
Real Conflicts | Pseudo-Conflicts | No Conflict | |||
---|---|---|---|---|---|
All | Some | All | Some | All | |
Tech. filter ON | Conflict | Conflict | Conflict (hidden) | Side | Side |
Tech. filter OFF | Conflict | Conflict | Conflict | Side | Side |
Modifier and Type | Class and Description |
---|---|
static class |
ThreeWayComparisonGroupProvider.CompositeConflict
|
static class |
ThreeWayComparisonGroupProvider.ConflictsGroupImpl
Specialized
BasicDifferenceGroupImpl for Conflicts. |
IDifferenceGroupProvider.ComparisonType, IDifferenceGroupProvider.Descriptor
Adapter.Internal
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Predicate<? super Diff> |
DEFAULT_DIFF_GROUP_FILTER_PREDICATE
The default predicate used to filter differences in difference groups.
|
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 static final com.google.common.base.Predicate<? super Diff> DEFAULT_DIFF_GROUP_FILTER_PREDICATE
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)
AbstractDifferenceGroupProvider
IDifferenceGroupProvider2
needs to override this
method to provid groups.buildGroups
in class AbstractDifferenceGroupProvider
comparison2
- comparison against which the groups will be built.IDifferenceGroup
.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.