Class FilesystemTreeDifferenceViewer

  • All Implemented Interfaces:
    IDifferenceViewer

    public class FilesystemTreeDifferenceViewer
    extends java.lang.Object
    implements IDifferenceViewer
    Difference viewer for file directories.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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 oExpected, java.lang.Object oActual, java.lang.Object delta)
      Shows the differences between the expected and actual values, which might have been precomputed or not.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FilesystemTreeDifferenceViewer

        public FilesystemTreeDifferenceViewer()
    • Method Detail

      • canCompare

        public boolean canCompare​(java.lang.Object expected,
                                  java.lang.Object actual,
                                  java.lang.Object delta)
        Description copied from interface: IDifferenceViewer
        Returns true if this viewer can show the differences between the expected and the actual results. This method will be called from the SWT thread.
        Specified by:
        canCompare in interface IDifferenceViewer
        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 and actual
        • , or b) show the precomputed differences in delta.

        Otherwise, returns false.

      • compare

        public void compare​(java.lang.Object oExpected,
                            java.lang.Object oActual,
                            java.lang.Object delta)
        Description copied from interface: IDifferenceViewer
        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 if IDifferenceViewer.canCompare(java.lang.Object, java.lang.Object, java.lang.Object) returned true with the same parameters.
        Specified by:
        compare in interface IDifferenceViewer
        Parameters:
        oExpected - Expected value.
        oActual - Actual value.
        delta - Precomputed difference, if available. Otherwise, null.