Eclipse Platform
2.0

org.eclipse.jface.text
Interface ITextListener


public interface ITextListener

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.

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.

Clients may implement this interface.

See Also:
ITextViewer, TextEvent, DocumentEvent

Method Summary
 void textChanged(TextEvent event)
          The visual representation of a text viewer this listener is registered with has been changed.
 

Method Detail

textChanged

public void textChanged(TextEvent event)
The visual representation of a text viewer this listener is registered with has been changed.

Parameters:
event - the description of the change

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.