Bug 94810 Generate Delegate Methods for multiple fields problem
I20050509-2010 In the CU below: - invoke Generate Delegate Methods - choose equals() from a and hashCode() from b - generate -> two delegate methods for a "class C { Object a; Object b; } "
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddDelegateMethodsAction.java
public int category(Object element) {
			if (element instanceof IBinding[])
				return 0;
			return 1;
		}
		public int compare(Viewer viewer, Object object1, Object object2) {
			String first= ""; 
			String second= ""; 
			if (object1 instanceof IBinding[])
				first= Bindings.asString(((IBinding[]) object1)[1]);
			else if (object1 instanceof IVariableBinding)
				first= ((IBinding) object1).getName();
			if (object2 instanceof IBinding[])
				second= Bindings.asString(((IBinding[]) object2)[1]);
			else if (object2 instanceof IVariableBinding)
				second= ((IBinding) object2).getName();
			return first.compareTo(second);
		}
	}
	private static final String DIALOG_TITLE= ActionMessages.AddDelegateMethodsAction_error_title; 
	private static boolean hasPrimitiveType(IField field) throws JavaModelException {
		String signature= field.getTypeSignature();
		char first= Signature.getElementType(signature).charAt(0);
		return (first != Signature.C_RESOLVED && first != Signature.C_UNRESOLVED);
	}
	private static boolean isArray(IField field) throws JavaModelException {
		return Signature.getArrayCount(field.getTypeSignature()) > 0;
	}
	private CompilationUnitEditor fEditor;
	/**