Search in sources :

Example 1 with SearchJob

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;
}
Also used : AbstractFile(com.mucommander.commons.file.AbstractFile) FileSet(com.mucommander.commons.file.util.FileSet) SearchJob(com.mucommander.job.impl.SearchJob)

Aggregations

AbstractFile (com.mucommander.commons.file.AbstractFile)1 FileSet (com.mucommander.commons.file.util.FileSet)1 SearchJob (com.mucommander.job.impl.SearchJob)1