Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 259503
Collapse All | Expand All

(-)Eclipse UI/org/eclipse/ui/dialogs/PatternFilter.java (-5 / +7 lines)
Lines 252-263 Link Here
252
     * @return true if the given element has children that matches the filter text
252
     * @return true if the given element has children that matches the filter text
253
     */
253
     */
254
    protected boolean isParentMatch(Viewer viewer, Object element){
254
    protected boolean isParentMatch(Viewer viewer, Object element){
255
        Object[] children = ((ITreeContentProvider) ((AbstractTreeViewer) viewer)
255
		if (viewer instanceof AbstractTreeViewer) {
256
                .getContentProvider()).getChildren(element);
256
			Object[] children = ((ITreeContentProvider) ((AbstractTreeViewer) viewer)
257
					.getContentProvider()).getChildren(element);
257
258
258
        if ((children != null) && (children.length > 0)) {
259
			if ((children != null) && (children.length > 0)) {
259
			return isAnyVisible(viewer, element, children);
260
				return isAnyVisible(viewer, element, children);
260
		}	
261
			}
262
		}
261
        return false;
263
        return false;
262
    }
264
    }
263
    
265
    

Return to bug 259503