Project: JDT
Bug 161282 [content assist] Applying proposal from the content assist history results in unresolved type
Reported: 2006-10-17 12:54:07 | Status: resolved fixed

Create a blank file with a main method, and type in the method: Set[CTRL-SPACE and import Set]<String> my = new [CTRL-SPACE and choose TreeSet, and finish the line] You should have ended up with: Set<String> my = new TreeSet<String>(); Where TreeSet was "auto-added" by Eclipse, but it will be underlined red, for you still need to import it. Expected: if Eclipse added TreeSet, it should have added an import line for it.

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaTypeCompletionProposalComputer.java