Bug 41000 Override/Implement Methods dialog does not (properly) resize [code manipulation]
The Override/Implement Methods dialog contents are not re-layouted properly when the windows is resized, i.e. the list on top is not scaled at all on windows and unproportionally (regarding the bottom part of the dialog) on linux.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/SourceActionDialog.java
} catch (JavaModelException e) {
			return null;
		}			
	}
	
	private IMethod asFirstMethod(IType type) throws JavaModelException {
		if (type != null) {
			IMethod[] methods= type.getMethods();
			if (methods.length > 0) {
				return methods[0];		
			}
		}
		return null;
	}
	/* Returns the element directly following the method to insert after. Index should never 
	 * always be > 2 since 0 means first method, and 1 means last method.
	 */
	private IJavaElement atElementPosition(IType type, int index) throws JavaModelException {
		if (type != null) {
			IMethod[] methods= type.getMethods();			
			IJavaElement[] elements= type.getChildren();
			for (int i= 0; i < (elements.length-1); i++) {
				if (methods[index-2] == elements[i])			
					return elements[i+1];
			}
		}
		return null;
	}
}