Bug 123086 Strange code assist for static imports
I20060105-0800 Test case: package p; public class Decl { public static final int VALUE= 0; } package q; import static Decl<code assit> public class A { } - execute code assist after import static Decl - pick p.Decl observe: you get package q; import static Decl import p.Decl; public class A { }
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/LazyJavaTypeCompletionProposal.java
if (fProposal.getKind() == CompletionProposal.TYPE_REF &&  fInvocationContext.getCoreContext().isInJavadocText())
			 return getSimpleTypeName();
		
		fImportRewrite= createImportRewrite();
		if (fImportRewrite != null) {
			return fImportRewrite.addImport(getQualifiedTypeName(), fImportContext);
		}
		
		if (fCompilationUnit != null) {
			if (JavaModelUtil.isImplicitImport(Signature.getQualifier(getQualifiedTypeName()), fCompilationUnit))
				return getSimpleTypeName();
			else
				return getQualifiedTypeName();
		}
		
		return getQualifiedTypeName();
	}
	protected final boolean isImportCompletion() {
		char[] completion= fProposal.getCompletion();
		return completion.length > 0 && completion[completion.length - 1] == ';';
	}
	private ImportRewrite createImportRewrite() {
		if (fCompilationUnit != null && allowAddingImports()) {
			try {
				CompilationUnit cu= createASTRoot(fCompilationUnit);
				if (cu == null) {
					ImportRewrite rewrite= StubUtility.createImportRewrite(fCompilationUnit, true);
					fImportContext= null;
					return rewrite;
				} else {