public interface ICompareFilter
Modifier and Type | Field and Description |
---|---|
static String |
OTHER_CONTRIBUTOR
Key for the
Character representing contributor of the other
line. |
static String |
OTHER_LINE
Key for the
String of the line of text this line is being
compared to. |
static String |
THIS_CONTRIBUTOR
Key for the
Character representing contributor of this line. |
static String |
THIS_LINE
Key for the
String of the line of text being compared. |
Modifier and Type | Method and Description |
---|---|
boolean |
canCacheFilteredRegions()
Because the comparison routine may compare each line multiple times to
other lines, the ignored regions may need to be calculated multiple times
for the same line during a comparison.
|
IRegion[] |
getFilteredRegions(HashMap lineComparison)
Identifies the regions of a line of text in a comparison that should be
ignored for comparison purposes.
|
boolean |
isEnabledInitially()
Returns whether the filter should be enabled when first initialized
|
void |
setInput(Object input,
Object ancestor,
Object left,
Object right)
Forwards the current input objects of the compare
|
static final String THIS_LINE
String
of the line of text being compared.static final String THIS_CONTRIBUTOR
Character
representing contributor of this line.
Value is either 'A' for ancestor, 'L' for left, or 'R' for right.static final String OTHER_LINE
String
of the line of text this line is being
compared to.static final String OTHER_CONTRIBUTOR
Character
representing contributor of the other
line. Value is either 'A' for ancestor, 'L' for left, or 'R' for right.void setInput(Object input, Object ancestor, Object left, Object right)
input
- the merge viewer inputancestor
- input into ancestor viewerleft
- input into left viewerright
- input into right viewerIRegion[] getFilteredRegions(HashMap lineComparison)
lineComparison
- contains values for the keys THIS_LINE
,
THIS_CONTRIBUTOR
, OTHER_LINE
and
OTHER_CONTRIBUTOR
THIS_LINE
to be ignored for comparison
purposes.boolean isEnabledInitially()
boolean canCacheFilteredRegions()
true
to this method will cause the ignored region
calculations to be re-used and improve the performance of the comparison.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.