Interface IDifferenceViewer
- All Known Implementing Classes:
EMFDifferenceViewer
,FilesystemTreeDifferenceViewer
,StringBasedDifferenceViewer
public interface IDifferenceViewer
Interface for showing the differences between the expected value and the
actual value.
- Author:
- Antonio Garcia-Dominguez
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
canCompare
(Object expected, Object actual, Object delta) Returnstrue
if this viewer can show the differences between the expected and the actual results.void
Shows the differences between the expected and actual values, which might have been precomputed or not.
-
Field Details
-
EXTENSION_POINT_ID
- See Also:
-
-
Method Details
-
canCompare
Returnstrue
if this viewer can show the differences between the expected and the actual results. This method will be called from the SWT thread.- Parameters:
expected
- Expected value.actual
- Actual value.delta
- Precomputed differences, if available. Otherwise,null
.- Returns:
true
if this instance can either:- compute and show the differences between
expected
andactual
- , or b) show the precomputed differences in
delta
.
Otherwise, returns
false
.- compute and show the differences between
-
compare
Shows the differences between the expected and actual values, which might have been precomputed or not. This method will be called from the SWT thread. This method should only be called ifcanCompare(java.lang.Object, java.lang.Object, java.lang.Object)
returned true with the same parameters.- Parameters:
expected
- Expected value.actual
- Actual value.delta
- Precomputed difference, if available. Otherwise,null
.
-