/** * Returns the filtered array of children of the given element. The * resulting array must not be modified, as it may come directly from the * model's internal state. * * @param parent * the parent element * @return a filtered array of child elements */ protected Object[] getFilteredChildren(Object parent) { Object[] result = getRawChildren(parent); if (filters != null) { for (Iterator iter = filters.iterator(); iter.hasNext();) { ViewerFilter f = (ViewerFilter) iter.next(); Object[] filteredResult = f.filter(this, parent, result); if (associateListener != null && filteredResult.length != result.length) { notifyFilteredOut(result, filteredResult); } result = filteredResult; } } return result; }
/** * Returns the filtered array of children of the given element. The * resulting array must not be modified, as it may come directly from the * model's internal state. * * @param parent * the parent element * @return a filtered array of child elements */ protected Object[] getFilteredChildren(Object parent) { Object[] result = getRawChildren(parent); if (filters != null) { for (Iterator iter = filters.iterator(); iter.hasNext();) { ViewerFilter f = (ViewerFilter) iter.next(); Object[] filteredResult = f.filter(this, parent, result); if (associateListener != null && filteredResult.length != result.length) { notifyFilteredOut(result, filteredResult); } result = filteredResult; } } return result; }
/** * Returns the filtered array of children of the given element. The * resulting array must not be modified, as it may come directly from the * model's internal state. * * @param parent * the parent element * @return a filtered array of child elements */ protected Object[] getFilteredChildren(Object parent) { Object[] result = getRawChildren(parent); if (filters != null) { for (Object element : filters) { ViewerFilter f = (ViewerFilter) element; Object[] filteredResult = f.filter(this, parent, result); if (associateListener != null && filteredResult.length != result.length) { notifyFilteredOut(result, filteredResult); } result = filteredResult; } } return result; }
@Override protected Object[] getRawChildren(Object parent) { boolean oldBusy = isBusy(); setBusy(true); try { return super.getRawChildren(parent); } finally { setBusy(oldBusy); } }
protected Object[] getRawChildren(Object parent) { boolean oldBusy = isBusy(); setBusy(true); try { return super.getRawChildren(parent); } finally { setBusy(oldBusy); } }
@Override protected Object[] getRawChildren(Object parent) { boolean oldBusy = isBusy(); setBusy(true); try { return super.getRawChildren(parent); } finally { setBusy(oldBusy); } }