Java Code Examples for org.eclipse.jface.viewers.ViewerFilter#filter()
The following examples show how to use
org.eclipse.jface.viewers.ViewerFilter#filter() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TimeGraphFilterDialog.java From tracecompass with Eclipse Public License 2.0 | 5 votes |
private boolean evaluateIfTreeEmpty(Object input) { Object[] elements = fContentProvider.getElements(input); if (elements.length > 0 && fFilters != null) { for (int i = 0; i < fFilters.size(); i++) { ViewerFilter curr = fFilters.get(i); elements = curr.filter(fTree.getViewer(), input, elements); } } return elements.length == 0; }
Example 2
Source File: ElementTreeSelectionDialog.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
private boolean evaluateIfTreeEmpty(Object input) { Object[] elements = fContentProvider.getElements(input); if (elements.length > 0) { if (fFilters != null) { for (int i = 0; i < fFilters.size(); i++) { ViewerFilter curr = (ViewerFilter) fFilters.get(i); elements = curr.filter(fViewer, input, elements); } } } return elements.length == 0; }
Example 3
Source File: ElementTreeSelectionDialog.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
private boolean evaluateIfTreeEmpty(Object input) { Object[] elements = fContentProvider.getElements(input); if (elements.length > 0) { if (fFilters != null) { for (int i = 0; i < fFilters.size(); i++) { ViewerFilter curr = (ViewerFilter) fFilters.get(i); elements = curr.filter(fViewer, input, elements); } } } return elements.length == 0; }