Bug 42143 Dialogs for source actions do not use dialog font [dialogs]
select a cu in package explorer context menu "Source": "Override/Implement methods..." "Generate Getters and Setters..." "Generate Delegate methods..." "Add constructor from superclass..." "Generate constructor using fields..."
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;
	}
}