Bug 139063 [Field Assist] - API - behavior of text insert not taking selection into account
Field Assist Example - set acceptance style to "Insert into field content" - type some text into the text and combo - select a subset of the text and invoke content assist - choose a proposal in the popup outcome: text is inserted at the insertion point expected: text should be inserted, but should replace any selected text Is this a regression?
bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/TextContentAdapter.java
/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.fieldassist.IControlContentAdapter#getCursorPosition(org.eclipse.swt.widgets.Control)
	 */
	public int getCursorPosition(Control control) {
		return ((Text) control).getCaretPosition();
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.fieldassist.IControlContentAdapter#getInsertionBounds(org.eclipse.swt.widgets.Control)
	 */
	public Rectangle getInsertionBounds(Control control) {
		Text text = (Text) control;
		Point caretOrigin = text.getCaretLocation();
		return new Rectangle(caretOrigin.x, caretOrigin.y, 1, text
				.getLineHeight());
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.fieldassist.IControlContentAdapter#setCursorPosition(org.eclipse.swt.widgets.Control,
	 *      int)
	 */
	public void setCursorPosition(Control control, int position) {
		((Text) control).setSelection(new Point(position, position));
	}
}