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
if (CodeGenerationPreferencePage.doFileComments()) {
			return getTemplate("filecomment", parentCU, 0); 
		}
		return null;
	}
	
	/**
	 * Hook method that gets called from <code>createType</code> to retrieve 
	 * a type comment. This default implementation returns the content of the 
	 * 'typecomment' template.
	 * 
	 * @return the type comment or <code>null</code> if a type comment 
	 * is not desired
	 */		
	protected String getTypeComment(ICompilationUnit parentCU) {
		if (CodeGenerationPreferencePage.doCreateComments()) {
			return getTemplate("typecomment", parentCU, 0); 
		}
		return null;
	}
	/**
	 * @deprecated Use getTemplate(String,ICompilationUnit,int)
	 */
	protected String getTemplate(String name, ICompilationUnit parentCU) {
		return getTemplate(name, parentCU, 0);
	
	}
	
	/**
	 * Returns the string resulting from evaluation the given template in