typeName= "{..}";
typeName= "{...}";
	public static void getTypeLabel(IType type, long flags, StringBuffer buf) {		if (getFlag(flags, T_FULLY_QUALIFIED)) {			IPackageFragment pack= type.getPackageFragment();			if (!pack.isDefaultPackage()) {				getPackageFragmentLabel(pack, (flags & P_COMPRESSED), buf);				buf.append('.');			}		}		if (getFlag(flags, T_FULLY_QUALIFIED | T_CONTAINER_QUALIFIED)) {			IType declaringType= type.getDeclaringType();			if (declaringType != null) {				getTypeLabel(declaringType, T_CONTAINER_QUALIFIED, buf);				buf.append('.');			}			int parentType= type.getParent().getElementType();			if (parentType == IJavaElement.METHOD || parentType == IJavaElement.FIELD || parentType == IJavaElement.INITIALIZER) { // anonymous or local				getElementLabel(type.getParent(), 0, buf);				buf.append('.');			}		}				String typeName= type.getElementName();		if (typeName.length() == 0) { // anonymous			try {				if (type.isEnum()) {					typeName= "{..}";  //$NON-NLS-1$				} else {					String superclassName= Signature.getSimpleName(type.getSuperclassName());					typeName= JavaUIMessages.getFormattedString("JavaElementLabels.anonym_type" , superclassName); //$NON-NLS-1$				}			} catch (JavaModelException e) {				//ignore				typeName= JavaUIMessages.getString("JavaElementLabels.anonym"); //$NON-NLS-1$			}		}		buf.append(typeName);		try {			ITypeParameter[] typeParameters = type.getTypeParameters();			if (typeParameters.length > 0) {				buf.append('<');				for (int i = 0; i < typeParameters.length; i++) {					if (i > 0) {						buf.append(COMMA_STRING);					}					buf.append(typeParameters[i].getElementName());				}				buf.append('>');			}				} catch(JavaModelException e) {			// TODO determine proper action to take		}		// post qualification		if (getFlag(flags, T_POST_QUALIFIED)) {			buf.append(CONCAT_STRING);			IType declaringType= type.getDeclaringType();			if (declaringType != null) {				getTypeLabel(declaringType, T_FULLY_QUALIFIED | (flags & P_COMPRESSED), buf);				int parentType= type.getParent().getElementType();				if (parentType == IJavaElement.METHOD || parentType == IJavaElement.FIELD || parentType == IJavaElement.INITIALIZER) { // anonymous or local					buf.append('.');					getElementLabel(type.getParent(), 0, buf);				}			} else {				getPackageFragmentLabel(type.getPackageFragment(), (flags & P_COMPRESSED), buf);			}		}	}