129
|
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.IDocumentListener;
|
|
14
|
|
15 import dwt.dwthelper.utils;
|
|
16
|
|
17
|
|
18
|
|
19 /**
|
|
20 * Interface for objects which are interested in getting informed about
|
|
21 * document changes. A listener is informed about document changes before
|
|
22 * they are applied and after they have been applied. It is ensured that
|
|
23 * the document event passed into the listener is the same for the two
|
|
24 * notifications, i.e. the two document events can be checked using object identity.
|
|
25 * <p>
|
|
26 * Clients may implement this interface.
|
|
27 * </p>
|
|
28 *
|
|
29 * @see dwtx.jface.text.IDocument
|
|
30 */
|
|
31 public interface IDocumentListener {
|
|
32
|
|
33
|
|
34 /**
|
|
35 * The manipulation described by the document event will be performed.
|
|
36 *
|
|
37 * @param event the document event describing the document change
|
|
38 */
|
|
39 void documentAboutToBeChanged(DocumentEvent event);
|
|
40
|
|
41 /**
|
|
42 * The manipulation described by the document event has been performed.
|
|
43 *
|
|
44 * @param event the document event describing the document change
|
|
45 */
|
|
46 void documentChanged(DocumentEvent event);
|
|
47 }
|