Project: JDT
Bug 162960 [content assist] field completion does not apply required proposal
Reported: 2006-10-31 13:08:04 | Status: verified fixed

I20061031-0656 package p; public class P { void m(Q q){ q. // Ctrl+Space, Enter } } package q; public class Q { public Object aField; public void aMethod() { } public class AClass { } } => 'aField' shows up as content assist proposal, but applying it does not add an import for q.Q. Works fine for aMethod(). No support for AClass, but that's OK.

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AbstractJavaCompletionProposal.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/LazyJavaCompletionProposal.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/java/CompletionProposalCollector.java