KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > text > IDocumentListener


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  *******************************************************************************/

11 package org.eclipse.jface.text;
12
13
14
15 /**
16  * Interface for objects which are interested in getting informed about
17  * document changes. A listener is informed about document changes before
18  * they are applied and after they have been applied. It is ensured that
19  * the document event passed into the listener is the same for the two
20  * notifications, i.e. the two document events can be checked using object identity.
21  * <p>
22  * Clients may implement this interface.
23  * </p>
24  *
25  * @see org.eclipse.jface.text.IDocument
26  */

27 public interface IDocumentListener {
28
29
30     /**
31      * The manipulation described by the document event will be performed.
32      *
33      * @param event the document event describing the document change
34      */

35     void documentAboutToBeChanged(DocumentEvent event);
36
37     /**
38      * The manipulation described by the document event has been performed.
39      *
40      * @param event the document event describing the document change
41      */

42     void documentChanged(DocumentEvent event);
43 }
44
Popular Tags