Bug 192633 [FieldAssist] auto-activated proposal popup should be closed when trigger character is removed
I20070608-1718 Auto-activated proposal popup should be closed when trigger character is removed. Steps: - open Find/Replace dialog, activate regex - type "\" or "\r" - when proposals appear, press Backspace until field is empty again Was: Proposals stay up Expected: Proposals should disappear when the triggering character is removed. This is also what happens in the Java Editor.
bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
}
	}
	/*
	 * Insert the specified text into the control content, setting the
	 * cursorPosition at the desired location within the new contents.
	 */
	private void insertControlContent(String text, int cursorPosition) {
		if (isValid()) {
			
			watchModify = false;
			
			
			
			
			
			if (controlContentAdapter instanceof IControlContentAdapter2
					&& selectionRange.x != -1) {
				((IControlContentAdapter2) controlContentAdapter).setSelection(
						control, selectionRange);
			} else if (insertionPos != -1) {
				controlContentAdapter.setCursorPosition(control, insertionPos);
			}
			controlContentAdapter.insertControlContents(control, text,
					cursorPosition);
		}
	}
	/*
	 * Check that the control and content adapter are valid.
	 */
	private boolean isValid() {