use of com.mucommander.job.impl.SearchJob in project mucommander by mucommander.
the class SearchBuilder method build.
public SearchJob build() {
if (searchJob == null) {
searchJob = new SearchJob(mainFrame, new FileSet(entrypoint, entrypoint));
searchJob.setListener(listener);
searchJob.setDepth(searchDepth);
searchJob.setThreads(searchThreads);
Predicate<AbstractFile> fileMatcher = createFilePredicate();
searchJob.setFileMatcher(fileMatcher);
Predicate<AbstractFile> lsFilter = createListFilter();
searchJob.setListFilter(lsFilter);
searchJob.setSearchText(searchText);
}
return searchJob;
}
Aggregations