blob: 0df04f7e94cac7e280cc3f001c2dad8c31f7b543 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jface.text;
/**
* Text listeners registered with an text viewer are informed about
* all text viewer modifications by means of text events. A text event
* describes a change as a replace operation.<p>
* The changes described in the event are the changes applied to the text viewer's
* widget (i.e. its visual representation) and not those applied to the text viewer's
* document. The text event can be asked to return the according document
* event. If a text listener receives a text event, it is guaranteed that
* both the document and the viewer's visual representation are in sync.<p>
* Clients may implement this interface.
*
* @see org.eclipse.jface.text.ITextViewer
* @see org.eclipse.jface.text.TextEvent
* @see org.eclipse.jface.text.DocumentEvent
*/
public interface ITextListener {
/**
* The visual representation of a text viewer this listener is registered with
* has been changed.
*
* @param event the description of the change
*/
void textChanged(TextEvent event);
}