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
int last= interfaces.size() - 1;
		if (last >= 0) {
			if (fIsClass) {
				buf.append(" implements "); 
			} else {
				buf.append(" extends "); 
			}
			for (int i= 0; i <= last; i++) {
				String typename= (String) interfaces.get(i);
				buf.append(imports.addImport(typename));
				if (i < last) {
					buf.append(',');
				}
			}
		}
	}
	/*
	 * Called from createType to construct the source for this type
	 */		
	private String constructTypeStub(ImportsManager imports, String lineDelimiter, ICompilationUnit parentCU) {	
		StringBuffer buf= new StringBuffer();
		String typeComment= getTypeComment(parentCU);
		if (typeComment != null && typeComment.length() > 0) {
			buf.append(typeComment);
			buf.append(lineDelimiter);
		}
			
		int modifiers= getModifiers();
		buf.append(Flags.toString(modifiers));
		if (modifiers != 0) {