Bug 108700 [typing] Automatically close parenthesis does not work when content assist popup is up
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/LazyJavaCompletionProposal.java
*/
	public final void setCursorPosition(int cursorPosition) {
		Assert.isTrue(cursorPosition >= 0);
		fCursorPositionComputed= true;
		fCursorPosition= cursorPosition;
	}
	
	protected final int getCursorPosition() {
		if (!fCursorPositionComputed)
			setCursorPosition(computeCursorPosition());
		return fCursorPosition;
	}
	protected int computeCursorPosition() {
		return getReplacementString().length();
	}
	/*
	 * @see ICompletionProposal#apply
	 */
	public final void apply(IDocument document) {
		
		apply(document, (char) 0, getReplacementOffset() + getReplacementLength());
	}
	
	/*
	 * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension#apply(org.eclipse.jface.text.IDocument, char, int)
	 */
	public void apply(IDocument document, char trigger, int offset) {
		try {
			
			int delta= offset - (getReplacementOffset() + getReplacementLength());