It supports the following kinds of listeners:
activatePlugins
call. Most plug-ins can be defined per content type. Content types are derived from a partitioning of the text viewer's input document. In case of documents that support multiple partitionings, the implementer is responsible for determining the partitioning to use. A text viewer also provides the concept of event consumption. Events handled by the viewer can be filtered and processed by a dynamic event consumer. With {@link org.eclipse.jface.text.ITextViewerExtension}, this mechanism has been replaced with the support for {@link org.eclipse.swt.custom.VerifyKeyListener}.
A text viewer provides several text editing functions, some of them are configurable, through a text operation target interface. It also supports a presentation mode in which it only shows a specified section of its document. By calling setVisibleRegion
clients define which section is visible. Clients can get access to this section by calling getVisibleRegion
. The viewer's presentation mode does not affect any client of the viewer other than text listeners. With {@link org.eclipse.jface.text.ITextViewerExtension5} the visible regionsupport has been reworked. With that extension interface, text viewers are allowed to show fractions of their input document. I.e. a widget selection of two visually neighboring characters is no longer guaranteed to be two neighboring characters in the viewer's input document. Thus, viewers implementing {@link org.eclipse.jface.text.ITextViewerExtension5} arepotentially forced to change the fractions of the input document that are shown when clients ask for the visible region.
In order to provide backward compatibility for clients of ITextViewer
, extension interfaces are used as a means of evolution. The following extension interfaces exist:
Clients may implement this interface and its extension interfaces or use the standard implementation {@link org.eclipse.jface.text.TextViewer}.
@see org.eclipse.jface.text.ITextViewerExtension @see org.eclipse.jface.text.ITextViewerExtension2 @see org.eclipse.jface.text.ITextViewerExtension3 @see org.eclipse.jface.text.ITextViewerExtension4 @see org.eclipse.jface.text.ITextViewerExtension5 @see org.eclipse.jface.text.ITextViewerExtension6 @see org.eclipse.jface.text.ITextViewerExtension7 @see org.eclipse.jface.text.ITextViewerExtension8 @see org.eclipse.jface.text.IDocument @see org.eclipse.jface.text.ITextInputListener @see org.eclipse.jface.text.IViewportListener @see org.eclipse.jface.text.ITextListener @see org.eclipse.jface.text.IEventConsumer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|