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 (getFlag(flags, T_FULLY_QUALIFIED)) {
			buf.append(JavaModelUtil.getFullyQualifiedName(type));
		} else if (getFlag(flags, T_CONTAINER_QUALIFIED)) {
			buf.append(JavaModelUtil.getTypeQualifiedName(type));
		} else {
			buf.append(type.getElementName());
		}
		
		if (getFlag(flags, T_POST_QUALIFIED)) {
			buf.append(CONCAT_STRING);
			IType declaringType= type.getDeclaringType();
			if (declaringType != null) {
				buf.append(JavaModelUtil.getFullyQualifiedName(declaringType));
			} else {
				getPackageFragmentLabel(type.getPackageFragment(), 0, buf);
			}
		}
	}
	/**
	 * Appends the label for a declaration to a StringBuffer. Considers the D_* flags.
	 */	
	public static void getDeclararionLabel(IJavaElement declaration, int flags, StringBuffer buf) {
		if (getFlag(flags, D_QUALIFIED)) {
			IJavaElement openable= (IJavaElement) declaration.getOpenable();
			if (openable != null) {
				buf.append(getElementLabel(openable, CF_QUALIFIED | CU_QUALIFIED));
				buf.append('/');
			}	
		}
		if (declaration.getElementType() == IJavaElement.IMPORT_CONTAINER) {