Class VisitableFile
java.lang.Object
org.libreoffice.ide.eclipse.core.builders.VisitableFile
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 Summary
ConstructorsConstructorDescriptionVisitableFile(File file) Create a new visitable file, ready to accept a visit. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IFileVisitor pVisitor) Welcome a visitor and let him explore the file hierarchy as he needs to.booleanexists()booleanbooleanisFile()
-
Constructor Details
-
VisitableFile
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
Welcome a visitor and let him explore the file hierarchy as he needs to.- Parameters:
pVisitor- the File visitor
-