Class FilesFinder
java.lang.Object
org.libreoffice.ide.eclipse.core.utils.FilesFinder
- All Implemented Interfaces:
org.eclipse.core.resources.IResourceVisitor
Visitor looking for all the files with given extensions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExclude(org.eclipse.core.runtime.IPath distPath) Add a path to exclude in the search.ArrayList<org.eclipse.core.resources.IFile>booleanvisit(org.eclipse.core.resources.IResource res)
-
Constructor Details
-
FilesFinder
Constructor.- Parameters:
extensions- the file extensions to match
-
-
Method Details
-
getResults
- Returns:
- the found files
-
visit
public boolean visit(org.eclipse.core.resources.IResource res) throws org.eclipse.core.runtime.CoreException - Specified by:
visitin interfaceorg.eclipse.core.resources.IResourceVisitor- Throws:
org.eclipse.core.runtime.CoreException
-
addExclude
public void addExclude(org.eclipse.core.runtime.IPath distPath) Add a path to exclude in the search.- Parameters:
distPath- the path to exclude
-