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 Image getImage(Object element) {
			if (element instanceof IBinding[]) {
				return super.getImage((((IBinding[]) element)[1]));
			} else if (element instanceof IVariableBinding) {
				return super.getImage(element);
			}
			return null;
		}
		public String getText(Object element) {
			if (element instanceof IBinding[]) {
				return super.getText((((IBinding[]) element)[1]));
			} else if (element instanceof IVariableBinding) {
				return super.getText(element);
			}
			return null;
		}
	}
	private static class AddDelegateMethodsViewerSorter extends ViewerSorter {