Class 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 java.lang.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.
    • Field Summary

      • Fields inherited from interface org.eclipse.compare.ITypedElement

        FOLDER_TYPE, TEXT_TYPE, UNKNOWN_TYPE
    • Constructor Summary

      Constructors 
      Constructor Description
      FilesystemTreeNode​(java.io.File file)  
    • Constructor Detail

      • FilesystemTreeNode

        public FilesystemTreeNode​(java.io.File file)
    • Method Detail

      • getName

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

        public java.lang.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 java.lang.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 java.io.InputStream getContents()
        Specified by:
        getContents in interface org.eclipse.compare.IStreamContentAccessor
      • toString

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

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object