Bug 7834 Methods-override dialog should present methods sorted (abc..)
Imagine a class extending JPanel. I want to override setBackgroundColor(Color c). I don't know where in the class-hierarchy the method is declared, so i've to search more or less to all entries in the tree, eye-scanning setBa.. . It's not so easy, as there are quite a few methods. So it would be nice to sort the method names in alphabeticall order, and really great would be a method searching. Could the code assist used for that?
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/OverrideMethodQuery.java
message= JavaUIMessages.getFormattedString("OverrideMethodQuery.selectioninfo.more", String.valueOf(count));
			}
			return new StatusInfo(IStatus.INFO, message);
		}
	}
	
	private boolean fEmptySelectionAllowed;
	private Shell fShell;
	
	public OverrideMethodQuery(Shell shell, boolean emptySelectionAllowed) {
		fShell= shell;
		fEmptySelectionAllowed= emptySelectionAllowed;
	}
	/*
	 * @see IOverrideMethodQuery#select(IMethod[], IMethod[], ITypeHierarchy)
	 */
	public IMethod[] select(IMethod[] methods, IMethod[] defaultSelected, ITypeHierarchy typeHierarchy) {
		HashSet types= new HashSet(methods.length);
		for (int i= 0; i < methods.length; i++) {
			types.add(methods[i].getDeclaringType());
		}
		Object[] typesArrays= types.toArray();
		
		ViewerSorter sorter= new OverrideMethodSorter(typeHierarchy);
		sorter.sort(null, typesArrays);
		HashSet expanded= new HashSet(defaultSelected.length); 
		for (int i= 0; i < defaultSelected.length; i++) {
			expanded.add(defaultSelected[i].getDeclaringType());
		}
		if (expanded.isEmpty() && typesArrays.length > 0) {