use of org.eclipse.che.api.vfs.VirtualFileFilter in project che by eclipse.
the class AbstractLuceneSearcherProvider method mergeFileIndexFilters.
private VirtualFileFilter mergeFileIndexFilters(Set<VirtualFileFilter> fileIndexFilters) {
final VirtualFileFilter filter;
if (fileIndexFilters.isEmpty()) {
filter = new MediaTypeFilter();
} else {
final List<VirtualFileFilter> myFilters = newArrayList(new MediaTypeFilter());
myFilters.addAll(fileIndexFilters);
filter = VirtualFileFilters.createOrFilter(myFilters);
}
return filter;
}
Aggregations