AbstractTextSearchResult result= getInput(); if (result == null) return 0; Object[] elements= result.getElements(); int count= 0; for (int i= 0; i < elements.length; i++) { count+= getDisplayedMatchCount(elements[i]);
IContentProvider cp= getViewer().getContentProvider(); if (cp instanceof ITreeContentProvider) { ITreeContentProvider tp= (ITreeContentProvider) cp; return getMatchCount(tp, getRootElements((TreeViewer) getViewer())); } else { return getMatchCount((IStructuredContentProvider) cp);
	private int getFilteredMatchCount() {		AbstractTextSearchResult result= getInput();		if (result == null)			return 0;		Object[] elements= result.getElements();		int count= 0;		for (int i= 0; i < elements.length; i++) {			count+= getDisplayedMatchCount(elements[i]);		}		return count;	}