Mercurial > projects > dwt-addons
view dwtx/jface/internal/text/DelayedInputChangeListener.d @ 138:b6bad70d540a
Regex instanceof changes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:26:23 +0200 |
parents | 7d818bd32d63 |
children | 75302ef3f92f |
line wrap: on
line source
/******************************************************************************* * Copyright (c) 2008 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 * Port to the D programming language: * Frank Benoit <benoit@tionex.de> *******************************************************************************/ module dwtx.jface.internal.text.DelayedInputChangeListener; import dwtx.jface.internal.text.NonDeletingPositionUpdater; // packageimport import dwtx.jface.internal.text.InternalAccessor; // packageimport import dwtx.jface.internal.text.StickyHoverManager; // packageimport import dwtx.jface.internal.text.InformationControlReplacer; // packageimport import dwtx.jface.internal.text.TableOwnerDrawSupport; // packageimport import dwt.dwthelper.utils; import dwtx.jface.text.IDelayedInputChangeProvider; import dwtx.jface.text.IInputChangedListener; /** * A delayed input change listener that forwards delayed input changes to an information control replacer. * * @since 3.4 */ public final class DelayedInputChangeListener : IInputChangedListener { private final IDelayedInputChangeProvider fChangeProvider; private final InformationControlReplacer fInformationControlReplacer; /** * Creates a new listener. * * @param changeProvider the information control with delayed input changes * @param informationControlReplacer the information control replacer, whose information control should get the new input */ public this(IDelayedInputChangeProvider changeProvider, InformationControlReplacer informationControlReplacer) { fChangeProvider= changeProvider; fInformationControlReplacer= informationControlReplacer; } /* * @see dwtx.jface.text.IDelayedInputChangeListener#inputChanged(java.lang.Object) */ public void inputChanged(Object newInput) { fChangeProvider.setDelayedInputChangeListener(null); fInformationControlReplacer.setDelayedInput(newInput); } }