public class StringBasedDifferenceViewer extends java.lang.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(java.lang.Object expected,
java.lang.Object actual,
java.lang.Object delta)
Returns
true if this viewer can show the differences between
the expected and the actual results. |
void |
compare(java.lang.Object expected,
java.lang.Object actual,
java.lang.Object delta)
Shows the differences between the expected and actual values, which might
have been precomputed or not.
|
public boolean canCompare(java.lang.Object expected,
java.lang.Object actual,
java.lang.Object delta)
IDifferenceViewertrue 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 IDifferenceViewerexpected - Expected value.actual - Actual value.delta - Precomputed differences, if available. Otherwise,
null.
true if this instance can either:
expected and actualdelta.
Otherwise, returns false.
public void compare(java.lang.Object expected,
java.lang.Object actual,
java.lang.Object delta)
IDifferenceViewerIDifferenceViewer.canCompare(java.lang.Object, java.lang.Object, java.lang.Object) returned
true with the same parameters.compare in interface IDifferenceViewerexpected - Expected value.actual - Actual value.delta - Precomputed difference, if available. Otherwise,
null.