if (getFlag(flags, F_CATEGORY) && field.exists()) { String[] categories= field.getCategories(); if (categories.length > 0) { buf.append(CONCAT_STRING); buf.append(Messages.format(JavaUIMessages.JavaElementLabels_category , categories[0])); } }
	public static void getFieldLabel(IField field, long flags, StringBuffer buf) {		try {						// category			if (getFlag(flags, F_CATEGORY) && field.exists()) {				String[] categories= field.getCategories();				if (categories.length > 0) {					buf.append(categories[0]);					buf.append(CONCAT_STRING);				}			}						if (getFlag(flags, F_PRE_TYPE_SIGNATURE) && field.exists() && !Flags.isEnum(field.getFlags())) {				if (getFlag(flags, USE_RESOLVED) && field.isResolved()) {					getTypeSignatureLabel(new BindingKey(field.getKey()).toSignature(), flags, buf);				} else {					getTypeSignatureLabel(field.getTypeSignature(), flags, buf);				}				buf.append(' ');			}						// qualification			if (getFlag(flags, F_FULLY_QUALIFIED)) {				getTypeLabel(field.getDeclaringType(), T_FULLY_QUALIFIED | (flags & QUALIFIER_FLAGS), buf);				buf.append('.');			}			buf.append(field.getElementName());						if (getFlag(flags, F_APP_TYPE_SIGNATURE) && field.exists() && !Flags.isEnum(field.getFlags())) {				buf.append(DECL_STRING);				if (getFlag(flags, USE_RESOLVED) && field.isResolved()) {					getTypeSignatureLabel(new BindingKey(field.getKey()).toSignature(), flags, buf);				} else {					getTypeSignatureLabel(field.getTypeSignature(), flags, buf);				}			}						// post qualification			if (getFlag(flags, F_POST_QUALIFIED)) {				buf.append(CONCAT_STRING);				getTypeLabel(field.getDeclaringType(), T_FULLY_QUALIFIED | (flags & QUALIFIER_FLAGS), buf);			}					} catch (JavaModelException e) {			JavaPlugin.log(e); // NotExistsException will not reach this point		}				}