return text+ " (1 match)"+postfix; return text + " (" + matchCount + " matches)"+postfix;
return text; return text + " (" + matchCount + " matches)"+postfix;
	public String getText(Object element) {		ITreeContentProvider provider= (ITreeContentProvider) fPage.getViewer().getContentProvider();		Object visibleParent= provider.getParent(element);		Object realParent= fContentProvider.getParent(element);		Object lastElement= element;		StringBuffer postfix= new StringBuffer();		while (realParent != null && !(realParent instanceof IJavaModel) && !realParent.equals(visibleParent)) {			if (!isSameInformation(realParent, lastElement))  {				postfix.append(" - "); //$NON-NLS-1$				postfix.append(internalGetText(realParent));			}			lastElement= realParent;			realParent= fContentProvider.getParent(realParent);		}		int matchCount= fPage.getInput().getMatchCount(element);		String text=internalGetText(element);		if (matchCount == 0)			return text+postfix;		if (matchCount == 1)			return text+ " (1 match)"+postfix; //$NON-NLS-1$ //$NON-NLS-2$		return text + " (" + matchCount + " matches)"+postfix; //$NON-NLS-1$ //$NON-NLS-2$	}