Bug 60116 [Search] Hierarchical Layout ignores package name compression
eclipse-SDK-I20040427-win32.zip 1. Set the preference to compress package names to '3.' 2. Perform a search & select the hierarchical layout... notice the package names are not compressed 3. Switch to the flat layout & the package names are compressed
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/PostfixLabelProvider.java
public Image getImage(Object element) {
		Image image= getLabelProvider().getImage(element);
		if (image != null)
			return image;
		return getParticipantImage(element);
	}
	
	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(" - "); 
				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() });
	}