Class FilesFinder
- java.lang.Object
-
- org.libreoffice.ide.eclipse.core.utils.FilesFinder
-
- All Implemented Interfaces:
org.eclipse.core.resources.IResourceVisitor
public class FilesFinder extends java.lang.Object implements org.eclipse.core.resources.IResourceVisitorVisitor looking for all the files with given extensions.
-
-
Constructor Summary
Constructors Constructor Description FilesFinder(java.lang.String[] pExtensions)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExclude(org.eclipse.core.runtime.IPath pDistPath)Add a path to exclude in the search.java.util.ArrayList<org.eclipse.core.resources.IFile>getResults()booleanvisit(org.eclipse.core.resources.IResource pResource)
-
-
-
Method Detail
-
getResults
public java.util.ArrayList<org.eclipse.core.resources.IFile> getResults()
- Returns:
- the found files
-
visit
public boolean visit(org.eclipse.core.resources.IResource pResource) 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 pDistPath)
Add a path to exclude in the search.- Parameters:
pDistPath- the path to exclude
-
-