public class StringBasedDifferenceViewer extends Object implements IDifferenceViewer
delta
is not null, this
viewer will be disabled.EXTENSION_POINT_ID
Constructor and Description |
---|
StringBasedDifferenceViewer() |
Modifier and Type | Method and Description |
---|---|
boolean |
canCompare(Object expected,
Object actual,
Object delta)
Returns
true if this viewer can show the differences between
the expected and the actual results. |
void |
compare(Object expected,
Object actual,
Object delta)
Shows the differences between the expected and actual values, which might
have been precomputed or not.
|
public boolean canCompare(Object expected, Object actual, Object delta)
IDifferenceViewer
true
if this viewer can show the differences between
the expected and the actual results. This method will be called from the
SWT thread.canCompare
in interface IDifferenceViewer
expected
- Expected value.actual
- Actual value.delta
- Precomputed differences, if available. Otherwise,
null
.
true
if this instance can either:
expected
and actual
delta
.
Otherwise, returns false
.
public void compare(Object expected, Object actual, Object delta)
IDifferenceViewer
IDifferenceViewer.canCompare(java.lang.Object, java.lang.Object, java.lang.Object)
returned
true with the same parameters.compare
in interface IDifferenceViewer
expected
- Expected value.actual
- Actual value.delta
- Precomputed difference, if available. Otherwise,
null
.Copyright © 2016. All rights reserved.