org.openoffice.ide.eclipse.core.utils
Class FilesFinder
java.lang.Object
org.openoffice.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.IResourceVisitor
Visitor looking for all the files with given extensions.
- Author:
- cbosdo
Constructor Summary |
FilesFinder(java.lang.String[] pExtensions)
Constructor. |
Method Summary |
void |
addExclude(org.eclipse.core.runtime.IPath pDistPath)
Add a path to exclude in the search. |
java.util.ArrayList<org.eclipse.core.resources.IFile> |
getResults()
|
boolean |
visit(org.eclipse.core.resources.IResource pResource)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilesFinder
public FilesFinder(java.lang.String[] pExtensions)
- Constructor.
- Parameters:
pExtensions
- the file extensions to match
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:
visit
in interface org.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