Mercurial > projects > dwt-addons
annotate dwtx/jface/internal/text/DelayedInputChangeListener.d @ 133:7d818bd32d63
Fix ctors to this with gvim regexp
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:29:22 +0200 |
parents | c4fb132a086c |
children | 75302ef3f92f |
rev | line source |
---|---|
129 | 1 /******************************************************************************* |
2 * Copyright (c) 2008 IBM Corporation and others. | |
3 * All rights reserved. This program and the accompanying materials | |
4 * are made available under the terms of the Eclipse Public License v1.0 | |
5 * which accompanies this distribution, and is available at | |
6 * http://www.eclipse.org/legal/epl-v10.html | |
7 * | |
8 * Contributors: | |
9 * IBM Corporation - initial API and implementation | |
10 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 module dwtx.jface.internal.text.DelayedInputChangeListener; | |
14 | |
131 | 15 import dwtx.jface.internal.text.NonDeletingPositionUpdater; // packageimport |
16 import dwtx.jface.internal.text.InternalAccessor; // packageimport | |
17 import dwtx.jface.internal.text.StickyHoverManager; // packageimport | |
18 import dwtx.jface.internal.text.InformationControlReplacer; // packageimport | |
19 import dwtx.jface.internal.text.TableOwnerDrawSupport; // packageimport | |
20 | |
21 | |
129 | 22 import dwt.dwthelper.utils; |
23 | |
24 import dwtx.jface.text.IDelayedInputChangeProvider; | |
25 import dwtx.jface.text.IInputChangedListener; | |
26 | |
27 | |
28 /** | |
29 * A delayed input change listener that forwards delayed input changes to an information control replacer. | |
30 * | |
31 * @since 3.4 | |
32 */ | |
33 public final class DelayedInputChangeListener : IInputChangedListener { | |
34 | |
35 private final IDelayedInputChangeProvider fChangeProvider; | |
36 private final InformationControlReplacer fInformationControlReplacer; | |
37 | |
38 /** | |
39 * Creates a new listener. | |
40 * | |
41 * @param changeProvider the information control with delayed input changes | |
42 * @param informationControlReplacer the information control replacer, whose information control should get the new input | |
43 */ | |
133
7d818bd32d63
Fix ctors to this with gvim regexp
Frank Benoit <benoit@tionex.de>
parents:
131
diff
changeset
|
44 public this(IDelayedInputChangeProvider changeProvider, InformationControlReplacer informationControlReplacer) { |
129 | 45 fChangeProvider= changeProvider; |
46 fInformationControlReplacer= informationControlReplacer; | |
47 } | |
48 | |
49 /* | |
50 * @see dwtx.jface.text.IDelayedInputChangeListener#inputChanged(java.lang.Object) | |
51 */ | |
52 public void inputChanged(Object newInput) { | |
53 fChangeProvider.setDelayedInputChangeListener(null); | |
54 fInformationControlReplacer.setDelayedInput(newInput); | |
55 } | |
56 } |