KickJava   Java API By Example, From Geeks To Geeks.

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


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  * Text input listeners registered with an
17  * {@link org.eclipse.jface.text.ITextViewer} are informed if the document
18  * serving as the text viewer's model is replaced.
19  * <p>
20  * Clients may implement this interface.</p>
21  *
22  * @see org.eclipse.jface.text.ITextViewer
23  * @see org.eclipse.jface.text.IDocument
24  */

25 public interface ITextInputListener {
26
27     /**
28      * Called before the input document is replaced.
29      *
30      * @param oldInput the text viewer's previous input document
31      * @param newInput the text viewer's new input document
32      */

33     void inputDocumentAboutToBeChanged(IDocument oldInput, IDocument newInput);
34
35     /**
36      * Called after the input document has been replaced.
37      *
38      * @param oldInput the text viewer's previous input document
39      * @param newInput the text viewer's new input document
40      */

41     void inputDocumentChanged(IDocument oldInput, IDocument newInput);
42 }
43
Popular Tags