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
fSuperClassStubTypeContext= null;
		
		String sclassName= getSuperClass();
		if (sclassName.length() == 0) {
			
			return status;
		}
		
		if (root != null) {
			if (! sclassName.trim().equals(sclassName)) {
				status.setError(NewWizardMessages.getString("NewTypeWizardPage.error.InvalidSuperClassName")); 
				return status;
			}
			StringBuffer cuBuff= new StringBuffer();
			cuBuff.append("class __X__ extends "); 
			int offset= cuBuff.length();
			cuBuff.append(sclassName).append(" {}"); 
			ASTParser p= ASTParser.newParser(AST.JLS3);
			p.setSource(cuBuff.toString().toCharArray());
			p.setProject(root.getJavaProject());
			CompilationUnit cu= (CompilationUnit) p.createAST(null);
			Selection selection= Selection.createFromStartLength(offset, sclassName.length());
			SelectionAnalyzer analyzer= new SelectionAnalyzer(selection, false);
			cu.accept(analyzer);
			ASTNode selected= analyzer.getFirstSelectedNode();
			if (! (selected instanceof Type) || selected instanceof PrimitiveType) {
				status.setError(NewWizardMessages.getString("NewTypeWizardPage.error.InvalidSuperClassName")); 
				return status;
			}