Bug 66843 Generate delegate methods dialog doesn't focus on right field [code manipulation]
if you have several fields MyClass c = null; YourClass b = null; Properties properties = null; And you select 'properties' in your text view, right click it and go to 'source'>'Generate delegate methods' then the MyClass type will be shown at the top, completely opened so that all its methods will be shown. the Properties type is checked correctly though. Would it be difficult, to bring 'Properties' to the top of the dialog? I.e. so that I don't have to scroll past all the methods of MyClass and YourClass (or without me having to collapse both classes first) in order to reach the methods from Properties?
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddDelegateMethodsAction.java
}
			return numEntries;
		}
		public Object[] getChildren(Object parentElement) {
			if (parentElement instanceof IField) {
				return (Object[]) fTreeMap.get(((IField) parentElement).getElementName());
			}
			return null;
		}
		public Object getParent(Object element) {
			return null;
		}
		public boolean hasChildren(Object element) {
			return element instanceof IField;
		}
		public Object[] getElements(Object inputElement) {
			Object[] o = fTreeMap.keySet().toArray();
			Object[] fields = new Object[o.length];
			for (int i = 0; i < o.length; i++) {
				fields[i] = fFieldMap.get(o[i]);
			}
			return fields;
		}
		public void dispose() {
		}
		public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
		}
	}
	
	private static class Methods2FieldLabelProvider implements ILabelProvider {