if (matchCount < 2) { String label= getSingularLabel(element); return MessageFormat.format(label, new String[] { text, postfix.toString() }); }
if (hasShownChildren(element) && matchCount == 1) { String label= getSingularLabel(element); return MessageFormat.format(label, new String[] { text, postfix.toString() }); } if (matchCount < 2) { String label= getNoCountLabel(element); return MessageFormat.format(label, new String[] { text, postfix.toString() }); }
	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.getDisplayedMatchCount(element);		String text=internalGetText(element);		if (matchCount < 2) {			String label= getSingularLabel(element);			return MessageFormat.format(label, new String[] { text, postfix.toString() });		}		String label= getPluralLabel(element);		return MessageFormat.format(label, new Object[] { text, new Integer(matchCount), postfix.toString() });	}