Bug 133620 [FieldAssist] auto activation of proposal popup should be canceled on keystroke
I20060328-0010 Auto activation of the proposal popup should be canceled on keystroke. Steps: - open Find/Replace dialog, activate regex - type "\rrrrrrr" as fast as possible => after a few "r"s, the proposal popup appears at the last "r" inserted This is not the intent of the "auto activation with delay" feature. Auto activation is intended to help the user if he stops typing and starts to think about possible completions. It should be triggered when the user types "\" and then waits a while, but the popup should not appear when the user continues typing after the trigger character.
bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
changeDefaultColors(parent);
			return contents;
		}
		
		/*
		 * Set the colors of the popup.  The contents have already been created.
		 */
		private void changeDefaultColors(Control control) {
			applyForegroundColor(getShell().getDisplay().getSystemColor(
					SWT.COLOR_WIDGET_FOREGROUND), control);
			applyBackgroundColor(getShell().getDisplay().getSystemColor(
					SWT.COLOR_WIDGET_BACKGROUND), control);
		}
		/*
		 * Creates the content area for the proposal popup. This creates a table
		 * and places it inside the composite. The table will contain a list of
		 * all the proposals.
		 * 
		 * @param parent The parent composite to contain the dialog area; must
		 * not be <code>null</code>.
		 */
		protected final Control createDialogArea(final Composite parent) {
			
			if (USE_VIRTUAL) {
				proposalTable = new Table(parent, SWT.H_SCROLL | SWT.V_SCROLL
						| SWT.VIRTUAL);
				Listener listener = new Listener() {
					public void handleEvent(Event event) {
						handleSetData(event);
					}