Bug 23079 JavaElementLabels does not honor P_COMPRESSED for types and members
Build 20020903 The label provider has an option to compress the package name (P_COMPRESSED). This option is not applied to types and members. Test Case: 1. Enable package fragment name compression 2. Search for declarations of a type or method which is not in the default package ==> the Search view should honor the package fragment name compression
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.java
if (pattern.equals(fgPkgNamePattern))
			return;
		else if (pattern.equals("")) { 
			fgPkgNamePattern= ""; 
			fgPkgNameLength= -1;
			return;
		}
		fgPkgNamePattern= pattern;
		int i= 0;
		fgPkgNameChars= 0;
		fgPkgNamePrefix= ""; 
		fgPkgNamePostfix= ""; 
		while (i < pattern.length()) {
			char ch= pattern.charAt(i);
			if (Character.isDigit(ch)) {
				fgPkgNameChars= ch-48;
				if (i > 0)
					fgPkgNamePrefix= pattern.substring(0, i);
				if (i >= 0)
					fgPkgNamePostfix= pattern.substring(i+1);
				fgPkgNameLength= fgPkgNamePrefix.length() + fgPkgNameChars + fgPkgNamePostfix.length();					
				return;
			}
			i++;
		}
		fgPkgNamePrefix= pattern;
		fgPkgNameLength= pattern.length();
	}
}