01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jface.text;
11:
12: /**
13: * Text input listeners registered with an
14: * {@link org.eclipse.jface.text.ITextViewer} are informed if the document
15: * serving as the text viewer's model is replaced.
16: * <p>
17: * Clients may implement this interface.</p>
18: *
19: * @see org.eclipse.jface.text.ITextViewer
20: * @see org.eclipse.jface.text.IDocument
21: */
22: public interface ITextInputListener {
23:
24: /**
25: * Called before the input document is replaced.
26: *
27: * @param oldInput the text viewer's previous input document
28: * @param newInput the text viewer's new input document
29: */
30: void inputDocumentAboutToBeChanged(IDocument oldInput,
31: IDocument newInput);
32:
33: /**
34: * Called after the input document has been replaced.
35: *
36: * @param oldInput the text viewer's previous input document
37: * @param newInput the text viewer's new input document
38: */
39: void inputDocumentChanged(IDocument oldInput, IDocument newInput);
40: }
|