Class VisitableFile
- java.lang.Object
-
- org.libreoffice.ide.eclipse.core.builders.VisitableFile
-
public class VisitableFile extends java.lang.ObjectA little tiny interface to visit File objects. This has to be used to avoid multiple and annoying project refresh operations trigerring unwanted changes.
-
-
Constructor Summary
Constructors Constructor Description VisitableFile(java.io.File pFile)Create a new visitable file, ready to accept a visit.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(IFileVisitor pVisitor)Welcome a visitor and let him explore the file hierarchy as he needs to.booleanexists()booleanisDirectory()booleanisFile()
-
-
-
Method Detail
-
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
-
-