Bug 23447 Java super-class name does not carry on to dialogue box [code manipulation]
From WSAD Customer: When creating a new Java Class, when an incomplete super-classname is entered in the dialogue box and then the Browse button is clicked, nothing that appears in the Choose a type field. Ideally, it should have the incomplete name typed in the previous super-class field. How to recreate : In the Java perspective, - File -> New ->Class - In the resulting dialogue box, type "JPan" in the 'Superclass' field. Now click on Browse. - Ideally, the dialogue box that just opened up should already have JPan written in it and hence the list of selectable classes would be shortened.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java
imports.create(!isInnerClass, new SubProgressMonitor(monitor, 1));
		
		createTypeMembers(createdType, new ImportsManager(imports), new SubProgressMonitor(monitor, 1));
		
		imports.create(!isInnerClass, new SubProgressMonitor(monitor, 1));
		
		ICompilationUnit cu= createdType.getCompilationUnit();	
		ISourceRange range;
		if (isInnerClass) {
			synchronized(cu) {
				cu.reconcile();
			}
			range= createdType.getSourceRange();
		} else {
			range= cu.getSourceRange();
		}
		
		IBuffer buf= cu.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) {
			String fileComment= getFileComment(cu);
			if (fileComment != null && fileComment.length() > 0) {
				buf.replace(0, 0, fileComment + lineDelimiter);
			}
			buf.save(new SubProgressMonitor(monitor, 1), false);
		} else {