Bug 90082 [1.5][generics] "New Class" wizard is not able to implement generic interfaces
In Eclipse 3.1 (JDT version I20050219-1500), the wizard for creating a new class seems unable to implement generic interfaces while specifying its argument. For example, implementing Comparable<Integer> is impossible; you have to first implement Comparable, and then correct the genearted stub for specifying its type argument. (in this example, replacing the Object argument of comparesTo by Integer.)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java
String superclass= getSuperClass();
		if (fTypeKind == CLASS_TYPE && superclass.length() > 0 && !"java.lang.Object".equals(superclass)) { 
			buf.append(" extends "); 
			
			ITypeBinding binding= resolveSuperClass(superclass);
			if (binding != null) {
				buf.append(imports.addImport(binding));
			} else if (superclass.indexOf('<') == -1) {
				buf.append(imports.addImport(superclass));
			} else {
				buf.append(superclass);
			}
		}
	}
	
	private ITypeBinding resolveSuperClass(String superclass) {
		StubTypeContext stubTypeContext= getSuperClassStubTypeContext();
		StringBuffer cuString= new StringBuffer();
		cuString.append(stubTypeContext.getBeforeString());
		cuString.append(superclass);
		cuString.append(stubTypeContext.getAfterString());
		
		try {
			ICompilationUnit wc= fCurrType.getCompilationUnit().getWorkingCopy(new WorkingCopyOwner() {}, null, new NullProgressMonitor());
			try {
				wc.getBuffer().setContents(cuString.toString());
				CompilationUnit compilationUnit= new RefactoringASTParser(AST.JLS3).parse(wc, true);
				ASTNode type= NodeFinder.perform(compilationUnit, stubTypeContext.getBeforeString().length(),
						superclass.length());
				if (type instanceof Type) {