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 (insertClosingParenthesis)
				setUpLinkedMode(document, ')');
			
			rememberSelection();
		} catch (CoreException e) {
			JavaPlugin.log(e);
		} catch (BadLocationException e) {
			JavaPlugin.log(e);
		}
	}
	private void updateReplacementWithParentheses() {
		StringBuffer replacement= new StringBuffer(getReplacementString());
		FormatterPrefs prefs= getFormatterPrefs();
		if (prefs.beforeOpeningParen)
			replacement.append(SPACE);
		replacement.append(LPAREN);
		if (prefs.afterOpeningParen)
			replacement.append(SPACE);
		setCursorPosition(replacement.length());
		
		if (prefs.afterOpeningParen)
			replacement.append(SPACE);
		
		replacement.append(RPAREN);
		
		setReplacementString(replacement.toString());
	}
	/**
	 * Remembers the selection in the content assist history.