Bug 73975 Search View displays potential match instead of accurate one [search]
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/PostfixLabelProvider.java
while (realParent != null && !(realParent instanceof IJavaModel) && !realParent.equals(visibleParent)) {
			if (!isSameInformation(realParent, lastElement))  {
				postfix.append(" - "); 
				postfix.append(internalGetText(realParent));
			}
			lastElement= realParent;
			realParent= fContentProvider.getParent(realParent);
		}
		int matchCount= fPage.getDisplayedMatchCount(element);
		String text=internalGetText(element);
		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() });
			} 
		String label= getPluralLabel(element);
		return MessageFormat.format(label, new Object[] { text, new Integer(matchCount), postfix.toString() });
	}
	private boolean hasShownChildren(Object element) {
		ITreeContentProvider contentProvider= (ITreeContentProvider) fPage.getViewer().getContentProvider();
		return contentProvider.hasChildren(element);
	}
	private String getNoCountLabel(Object element) {
		if (hasPotentialMatches(element))
			return SearchMessages.getString("PostfixLabelProvider.potential_noCount"); 
		return SearchMessages.getString("PostfixLabelProvider.exact_noCount"); 
	}