Skip navigation links
Eclipse Platform
Neon (4.6)

Package org.eclipse.jface.text

Provides a framework for creating and manipulating text documents.

See: Description

Package org.eclipse.jface.text Description

Provides a framework for creating and manipulating text documents.

Package Specification

IDocument is the major text model abstraction. It provides content management, position management using position categories, document partition management, and change notification. In order to be notified about document changes, an object must implements IDocumentListener and must be registered with the document. Position updating in responds to a document change is performed by implementers of IDocumentPositionUpdater. Partition updating in responds to a document change is performed by implements of IDocumentPartitioner. In order to be notified about document partition changes, objects must implement IDocumentParititoningListener and must be registered with the document.

The package contains default implementations for document position updaters and for documents. AbstractDocument uses ITextStorage for storing and managing its content and ILineTracker to maintain a line structure of its content. As defaults a gap text implementation of ITextStore is provided, together with a line tracker understanding the three standard line delimiters ("\r", "\n", "\r\n") and a line tracker which can be freely configured to consider any given set of strings as valid line delimiters.

ITextViewer defines the concept of a document based, editiable viewer. ITextViewer offers the following functionality:

An ITextViewer supports the following plug-ins The package provides default implementations for all these interfaces.
Skip navigation links
Eclipse Platform
Neon (4.6)


Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.