Bug 115902 [content assist] Content assist in empty method parameter list inserts method again
I20051108-1011 public class Try { void m() { new String(); } } Put caret to after "new String(" and press Ctrl+Space Expected: proposals for constructors Was: new String(String|);
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaMethodCompletionProposal.java
/**
	 * Returns the method formatter preferences.
	 * 
	 * @return the formatter settings
	 */
	protected final FormatterPrefs getFormatterPrefs() {
		if (fFormatterPrefs == null)
			fFormatterPrefs= new FormatterPrefs(fCompilationUnit == null ? null : fCompilationUnit.getJavaProject());
		return fFormatterPrefs;
	}
	
	/*
	 * @see org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal#computeReplacementString()
	 */
	protected String computeReplacementString() {
		if (!hasArgumentList())
			return super.computeReplacementString();
		
		
		StringBuffer buffer= new StringBuffer();
		buffer.append(fProposal.getName());
		FormatterPrefs prefs= getFormatterPrefs();
		if (prefs.beforeOpeningParen)
			buffer.append(SPACE);
		buffer.append(LPAREN);
		
		if (hasParameters()) {
			setCursorPosition(buffer.length());
			
			if (prefs.afterOpeningParen)