Class EMFDifferenceViewer
- java.lang.Object
-
- org.eclipse.epsilon.eunit.dt.diff.emf.v3.EMFDifferenceViewer
-
- All Implemented Interfaces:
IDifferenceViewer
public class EMFDifferenceViewer extends java.lang.Object implements IDifferenceViewer
-
-
Field Summary
-
Fields inherited from interface org.eclipse.epsilon.eunit.dt.diff.IDifferenceViewer
EXTENSION_POINT_ID
-
-
Constructor Summary
Constructors Constructor Description EMFDifferenceViewer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanCompare(java.lang.Object expected, java.lang.Object actual, java.lang.Object delta)Returnstrueif this viewer can show the differences between the expected and the actual results.voidcompare(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.
-
-
-
Method Detail
-
canCompare
public boolean canCompare(java.lang.Object expected, java.lang.Object actual, java.lang.Object delta)Description copied from interface:IDifferenceViewerReturnstrueif this viewer can show the differences between the expected and the actual results. This method will be called from the SWT thread.- Specified by:
canComparein interfaceIDifferenceViewer- Parameters:
expected- Expected value.actual- Actual value.delta- Precomputed differences, if available. Otherwise,null.- Returns:
trueif this instance can either:- compute and show the differences between
expectedandactual - , or b) show the precomputed differences in
delta.
Otherwise, returns
false.- compute and show the differences between
-
compare
public void compare(java.lang.Object expected, java.lang.Object actual, java.lang.Object delta)Description copied from interface:IDifferenceViewerShows 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 ifIDifferenceViewer.canCompare(java.lang.Object, java.lang.Object, java.lang.Object)returned true with the same parameters.- Specified by:
comparein interfaceIDifferenceViewer- Parameters:
expected- Expected value.actual- Actual value.delta- Precomputed difference, if available. Otherwise,null.
-
-