Class RecursiveFileFinder
java.lang.Object
org.eclipse.ui.wizards.datatransfer.RecursiveFileFinder
- All Implemented Interfaces:
IResourceVisitor
A simple resource visitor that allows to find one or more files by name in a
IContainer
- Since:
- 3.12
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
RecursiveFileFinder
- Parameters:
fileName
- the name of the file to look forignoredDirectories
- which directories are excluded from research. Sub-directories will get ignored too.
-
-
Method Details
-
visit
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
- Returns:
- the first found file with right name
-
getFiles
- Returns:
- All found files
-