Search in sources :

Example 1 with VirtualFileFilter

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;
}
Also used : VirtualFileFilter(org.eclipse.che.api.vfs.VirtualFileFilter) MediaTypeFilter(org.eclipse.che.api.vfs.search.MediaTypeFilter)

Aggregations

VirtualFileFilter (org.eclipse.che.api.vfs.VirtualFileFilter)1 MediaTypeFilter (org.eclipse.che.api.vfs.search.MediaTypeFilter)1