Mercurial > projects > dwt-addons
comparison dwtx/jface/text/ITextInputListener.d @ 129:eb30df5ca28b
Added JFace Text sources
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 23 Aug 2008 19:10:48 +0200 |
parents | |
children | c4fb132a086c |
comparison
equal
deleted
inserted
replaced
128:8df1d4193877 | 129:eb30df5ca28b |
---|---|
1 /******************************************************************************* | |
2 * Copyright (c) 2000, 2005 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.text.ITextInputListener; | |
14 | |
15 import dwt.dwthelper.utils; | |
16 | |
17 | |
18 | |
19 /** | |
20 * Text input listeners registered with an | |
21 * {@link dwtx.jface.text.ITextViewer} are informed if the document | |
22 * serving as the text viewer's model is replaced. | |
23 * <p> | |
24 * Clients may implement this interface.</p> | |
25 * | |
26 * @see dwtx.jface.text.ITextViewer | |
27 * @see dwtx.jface.text.IDocument | |
28 */ | |
29 public interface ITextInputListener { | |
30 | |
31 /** | |
32 * Called before the input document is replaced. | |
33 * | |
34 * @param oldInput the text viewer's previous input document | |
35 * @param newInput the text viewer's new input document | |
36 */ | |
37 void inputDocumentAboutToBeChanged(IDocument oldInput, IDocument newInput); | |
38 | |
39 /** | |
40 * Called after the input document has been replaced. | |
41 * | |
42 * @param oldInput the text viewer's previous input document | |
43 * @param newInput the text viewer's new input document | |
44 */ | |
45 void inputDocumentChanged(IDocument oldInput, IDocument newInput); | |
46 } |