Bug 4086 Format problem in single element mode (1GKPJI8)
EG (27.09.2001 12:32:36) from WSAD newsgoup If you select Format (from the popup menu when you right click on .java file) while in "View selected element only" mode (ie - looking at only one method) the auot format adds a large amount of whitespace to the begining of each line. Repeated "Formats" just add more space. You then have to go to the "whole document" view and reformat the entire document to fix this (well, I guess I could manual remove the whitespace, but then what's the point of autoformat?). NOTES: EG (10.10.2001 22:38:03) pls investigate whether this is the formatting strategy or the Java editor
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/codemanipulation/StubUtility.java
* @param supertype The type's super type
	 * @param newMethods The resulting source for the created constructors (List of String)
	 * @param imports Type names for input declarations required (for example 'java.util.Vector')
	 */
	public static void evalConstructors(IType type, IType supertype, List newMethods, IImportsStructure imports) throws JavaModelException {
		IMethod[] methods= supertype.getMethods();
		for (int i= 0; i < methods.length; i++) {
			IMethod curr= methods[i];
			if (curr.isConstructor() && JavaModelUtil.isVisible(curr, type.getPackageFragment())) {
				String newStub= genStub(type, methods[i], imports);
				newMethods.add(newStub);
			}
		}
	}
	/**
	 * Searches for unimplemented methods of a type.
	 * @param newMethods The source for the created methods (Vector of String)
	 * @param imports Type names for input declarations required (for example 'java.util.Vector')
	 */
	public static void evalUnimplementedMethods(IType type, ITypeHierarchy hierarchy, List newMethods, IImportsStructure imports) throws JavaModelException {
		List allMethods= new ArrayList();
		IMethod[] typeMethods= type.getMethods();
		for (int i= 0; i < typeMethods.length; i++) {
			IMethod curr= typeMethods[i];
			if (!curr.isConstructor() && !Flags.isStatic(curr.getFlags())) {
				allMethods.add(curr);
			}
		}
		IType[] superTypes= hierarchy.getAllSuperclasses(type);
		for (int i= 0; i < superTypes.length; i++) {