List of usage examples for org.eclipse.jface.viewers ViewerFilter isFilterProperty
public boolean isFilterProperty(Object element, String property)
From source file:org.neuro4j.studio.debug.ui.views.StructuredViewer.java
License:Apache License
/** * Determines whether a change to the given property of the given element * would require refiltering and/or resorting. * <p>//from www .ja v a 2 s . co m * This method is internal to the framework; subclassers should not call this method. * </p> * * @param element * the element * @param property * the property * @return <code>true</code> if refiltering is required, and <code>false</code> otherwise */ protected boolean needsRefilter(Object element, String property) { if (sorter != null && sorter.isSorterProperty(element, property)) { return true; } if (filters != null) { for (int i = 0, n = filters.size(); i < n; ++i) { ViewerFilter filter = (ViewerFilter) filters.get(i); if (filter.isFilterProperty(element, property)) { return true; } } } return false; }