Class VisitableFile

java.lang.Object
org.libreoffice.ide.eclipse.core.builders.VisitableFile

public class VisitableFile extends Object
A little tiny interface to visit File objects. This has to be used to avoid multiple and annoying project refresh operations trigerring unwanted changes.
  • Constructor Details

    • VisitableFile

      public VisitableFile(File file)
      Create a new visitable file, ready to accept a visit.
      Parameters:
      file - the file to visit later.
  • Method Details

    • exists

      public boolean exists()
      Returns:
      if the file exists
    • isDirectory

      public boolean isDirectory()
      Returns:
      if the visitable file has been correctly initialised and is a directory
    • isFile

      public boolean isFile()
      Returns:
      if the visitable file has been correctly initialised and is a file
    • accept

      public void accept(IFileVisitor pVisitor)
      Welcome a visitor and let him explore the file hierarchy as he needs to.
      Parameters:
      pVisitor - the File visitor