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
ISourceRange typeSourceRange= fCurrEnclosingType.getSourceRange();
				int focalPosition= typeSourceRange.getOffset() + typeSourceRange.getLength() - 1; 
				ASTParser parser= ASTParser.newParser(AST.JLS3);
				parser.setSource(cu);
				parser.setFocalPosition(focalPosition);
				CompilationUnit compilationUnit= (CompilationUnit) parser.createAST(null);
				stubTypeContext= TypeContextChecker.createStubTypeContext(cu, compilationUnit, focalPosition);
				stubTypeContext= new StubTypeContext(stubTypeContext.getCuHandle(),
						stubTypeContext.getBeforeString() + prolog,
						epilog + stubTypeContext.getAfterString());
			} catch (CoreException e) {
				JavaPlugin.log(e);
				stubTypeContext= new StubTypeContext(null, null, null);
			}
			
		} else if (fCurrPackage != null) {
			ICompilationUnit cu= fCurrPackage.getCompilationUnit(JavaTypeCompletionProcessor.DUMMY_CU_NAME);
			stubTypeContext= new StubTypeContext(cu, "package " + fCurrPackage.getElementName() + ";" + prolog, epilog);  
			
		} else {
			stubTypeContext= new StubTypeContext(null, null, null);
		}
		fSuperClassStubTypeContext= stubTypeContext;
		return fSuperClassStubTypeContext;
	}
	
	
	private IType findType(IJavaProject project, String typeName) throws JavaModelException {
		if (project.exists()) {
			return project.findType(typeName);