Bug 6758 Class name corrupted by creating member class using wizard
Build 20011206 - opened org.eclipse.ui.actions.DeleteResourceAction - using new class wizard, created member class named DeleteProjectDialog as a subclass of MessageDialog (in org.eclipse.jface.dialogs) - the result was: ... public class DeleteRes ourceAction extends SelectionListenerAction { public class DeleteProjectDialog extends MessageDialog { } ... Note the extra tab in DeleteResourceAction, and the strange formatting for the new class.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/TypePage.java
imports.create(!isInnerClass, new SubProgressMonitor(monitor, 1));
		
		String[] methods= evalMethods(createdType, imports, new SubProgressMonitor(monitor, 1));
		if (methods.length > 0) {
			for (int i= 0; i < methods.length; i++) {
				createdType.createMethod(methods[i], null, false, null);
			}
			
			imports.create(!isInnerClass, null);
		} 
		monitor.worked(1);	
		
		
		ISourceRange range= isInnerClass ? createdType.getSourceRange() : createdType.getCompilationUnit().getSourceRange();
		IBuffer buf= createdType.getCompilationUnit().getBuffer();
		String originalContent= buf.getText(range.getOffset(), range.getLength());
		String formattedContent= StubUtility.codeFormat(originalContent, indent, lineDelimiter);
		buf.replace(range.getOffset(), range.getLength(), formattedContent);
		if (!isInnerClass) {
			buf.save(new SubProgressMonitor(monitor, 1), false);
		} else {
			monitor.worked(1);
		}
		fCreatedType= createdType;
		monitor.done();
	}	
	/**
	 * Returns the created type. Only valid after createType has been invoked