Class FilesystemTreeNode

java.lang.Object
org.eclipse.epsilon.eunit.dt.diff.files.FilesystemTreeNode
All Implemented Interfaces:
org.eclipse.compare.IModificationDate, org.eclipse.compare.IStreamContentAccessor, org.eclipse.compare.ITypedElement, org.eclipse.compare.structuremergeviewer.IStructureComparator

public class FilesystemTreeNode extends Object implements org.eclipse.compare.structuremergeviewer.IStructureComparator, org.eclipse.compare.IModificationDate, org.eclipse.compare.ITypedElement, org.eclipse.compare.IStreamContentAccessor
Node for the difference engine which wraps a regular file.
  • Constructor Details

    • FilesystemTreeNode

      public FilesystemTreeNode(File file)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.eclipse.compare.ITypedElement
    • getType

      public String getType()
      Specified by:
      getType in interface org.eclipse.compare.ITypedElement
    • getModificationDate

      public long getModificationDate()
      Specified by:
      getModificationDate in interface org.eclipse.compare.IModificationDate
    • getChildren

      public Object[] getChildren()
      Specified by:
      getChildren in interface org.eclipse.compare.structuremergeviewer.IStructureComparator
    • getImage

      public org.eclipse.swt.graphics.Image getImage()
      Specified by:
      getImage in interface org.eclipse.compare.ITypedElement
    • getContents

      public InputStream getContents()
      Specified by:
      getContents in interface org.eclipse.compare.IStreamContentAccessor
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object other)
      Specified by:
      equals in interface org.eclipse.compare.structuremergeviewer.IStructureComparator
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object