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
/*******************************************************************************
 * Copyright (c) 2005, 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jface.fieldassist;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Text;
/**
 * An {@link IControlContentAdapter} for SWT Text controls. This is a
 * convenience class for easily creating a {@link ContentProposalAdapter} for
 * text fields.
 * 
 * @since 3.2
 */
public class TextContentAdapter implements IControlContentAdapter {
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.dialogs.taskassistance.IControlContentAdapter#getControlContents(org.eclipse.swt.widgets.Control)
	 */
	public String getControlContents(Control control) {