Class RecursiveFileFinder
- java.lang.Object
-
- org.eclipse.ui.wizards.datatransfer.RecursiveFileFinder
-
- All Implemented Interfaces:
IResourceVisitor
public class RecursiveFileFinder extends Object implements IResourceVisitor
A simple resource visitor that allows to find one or more files by name in aIContainer
- Since:
- 3.12
-
-
Constructor Summary
Constructors Constructor Description RecursiveFileFinder(String fileName, Set<IPath> ignoredDirectories)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFile
getFile()
Set<IFile>
getFiles()
boolean
visit(IResource res)
Visits the given resource.
-
-
-
Method Detail
-
visit
public boolean visit(IResource res)
Description copied from interface:IResourceVisitor
Visits the given resource.- Specified by:
visit
in interfaceIResourceVisitor
- Parameters:
res
- the resource to visit- Returns:
true
if the resource's members should be visited;false
if they should be skipped
-
getFile
public IFile getFile()
- Returns:
- the first found file with right name
-
-