Bug 127045 TypeInfoUtil.searchTypeInfo unnecessary
20060209 TypeInfoUtil.searchTypeInfo performs a search just to get a type info. This is too expensive and unnecessary. Either change the history to store qualified names or allow to create a type info from a qualified name (problem is the enclosing type names, so either we cheat there, or we need also the package name to evaluate the enclosing type names)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/LazyJavaTypeCompletionProposal.java
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.
	 * 
	 * @throws JavaModelException if anything goes wrong