org.eclipse.jface.text |
text infrastructure
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.
|
Java Source File Name | Type | Comment |
AbstractDocument.java | Class | Abstract default implementation of IDocument and its extension
interfaces
org.eclipse.jface.text.IDocumentExtension ,
org.eclipse.jface.text.IDocumentExtension2 ,
org.eclipse.jface.text.IDocumentExtension3 ,
org.eclipse.jface.text.IDocumentExtension4 , as well as
org.eclipse.jface.text.IRepairableDocument .
An AbstractDocument supports the following implementation
plug-ins:
The document can dynamically change the text store when switching between
sequential rewrite mode and normal mode.
This class must be subclassed. |
AbstractLineTracker.java | Class | Abstract implementation of ILineTracker . |
Assert.java | Class | Assert is useful for for embedding runtime sanity checks
in code. |
BadLocationException.java | Class | Indicates the attempt to access a non-existing position. |
BadPartitioningException.java | Class | Represents the attempt to refer to a non-existing document partitioning. |
BadPositionCategoryException.java | Class | Indicates the attempt to access a non-existing position
category in a document. |
ConfigurableLineTracker.java | Class | Standard implementation of a generic
org.eclipse.jface.text.ILineTracker .
The line tracker can be configured with the set of legal line delimiters.
Line delimiters are unconstrained. |
CopyOnWriteTextStore.java | Class | Copy-on-write ITextStore wrapper. |
DefaultLineTracker.java | Class | Standard implementation of
org.eclipse.jface.text.ILineTracker . |
DefaultPositionUpdater.java | Class | Default implementation of
org.eclipse.jface.text.IPositionUpdater .
A default position updater must be configured with the position category whose positions it will
update. |
Document.java | Class | Default document implementation. |
DocumentEvent.java | Class | Specification of changes applied to documents. |
DocumentPartitioningChangedEvent.java | Class | Event describing the change of document partitionings. |
DocumentRewriteSession.java | Class | A document rewrite session. |
DocumentRewriteSessionEvent.java | Class | Description of the state of document rewrite sessions. |
DocumentRewriteSessionType.java | Class | A document rewrite session type. |
FindReplaceDocumentAdapter.java | Class | Provides search and replace operations on
org.eclipse.jface.text.IDocument . |
GapTextStore.java | Class | Implements a gap managing text store. |
IDocument.java | Interface | An IDocument represents text providing support for
- text manipulation
- positions
- partitions
- line information
- document change listeners
- document partition change listeners
A document allows to set its content and to manipulate it. |
IDocumentExtension.java | Interface | Extension interface for
org.eclipse.jface.text.IDocument .
It introduces the notion of sequentially rewriting a document. |
IDocumentExtension2.java | Interface | Extension interface for
org.eclipse.jface.text.IDocument .
It adds configuration methods to post notification replaces and document
listener notification. |
IDocumentExtension3.java | Interface | Extension interface for
org.eclipse.jface.text.IDocument .
Adds the concept of multiple partitionings and the concept of zero-length
partitions in conjunction with open and delimited partitions. |
IDocumentExtension4.java | Interface | Extension interface for
org.eclipse.jface.text.IDocument . |
IDocumentInformationMapping.java | Interface | A IDocumentInformationMapping represents a mapping between the coordinates of two
IDocument objects: the original and the image. |
IDocumentInformationMappingExtension.java | Interface | Extension to
org.eclipse.jface.text.IDocumentInformationMapping . |
IDocumentInformationMappingExtension2.java | Interface | Extension to
org.eclipse.jface.text.IDocumentInformationMapping . |
IDocumentListener.java | Interface | Interface for objects which are interested in getting informed about
document changes. |
IDocumentPartitioner.java | Interface | A document partitioner divides a document into a set
of disjoint text partitions. |
IDocumentPartitionerExtension.java | Interface | Extension interface for
org.eclipse.jface.text.IDocumentPartitioner . |
IDocumentPartitionerExtension2.java | Interface | Extension interface for
org.eclipse.jface.text.IDocumentPartitioner .
Extends the original concept of a document partitioner to answer the position
categories that are used to manage the partitioning information.
This extension also introduces the concept of open and delimited partitions.
A delimited partition has a predefined textual token delimiting its start and
end, while an open partition can fill any space between two delimited
partitions.
An open partition of length zero can occur between two delimited partitions,
thus having the same offset as the following delimited partition. |
IDocumentPartitionerExtension3.java | Interface | Extension interface for
org.eclipse.jface.text.IDocumentPartitioner . |
IDocumentPartitioningListener.java | Interface | Interface of objects which are interested in getting informed
about changes of a document's partitioning.
Clients may implement this interface.
In order to provided backward compatibility for clients of IDocumentPartitioningListener , extension
interfaces are used to provide a means of evolution. |
IDocumentPartitioningListenerExtension.java | Interface | Extension interface for
org.eclipse.jface.text.IDocumentPartitioningListener . |
IDocumentPartitioningListenerExtension2.java | Interface | Extension interface to
org.eclipse.jface.text.IDocumentPartitioningListener . |
IDocumentRewriteSessionListener.java | Interface | Interface for objects which are interested in getting informed about document
rewrite sessions. |
ILineTracker.java | Interface | A line tracker maps character positions to line numbers and vice versa.
Initially the line tracker is informed about its underlying text in order to
initialize the mapping information. |
ILineTrackerExtension.java | Interface | Extension interface for
org.eclipse.jface.text.ILineTracker . |
IPositionUpdater.java | Interface | A position updater is responsible for adapting document positions. |
IRegion.java | Interface | A region describes a certain range in an indexed text store. |
IRepairableDocument.java | Interface | Tagging interface to be implemented by
org.eclipse.jface.text.IDocument implementers that offer a line
repair method on the documents. |
ISlaveDocumentManager.java | Interface | Slave documents are documents whose contents is defined in terms of a master
document. |
ISlaveDocumentManagerExtension.java | Interface | Extension interface for
org.eclipse.jface.text.ISlaveDocumentManager . |
ISynchronizable.java | Interface | Interface for text related objects which may be used in the multi-threaded
context and thus must provide a way to prevent concurrent access and
manipulation. |
ITextStore.java | Interface | Interface for storing and managing text. |
ITypedRegion.java | Interface | Describes a region of an indexed text store such as a document or a string.
The region consists of offset, length, and type. |
Line.java | Class | Describes a line as a particular number of characters beginning at
a particular offset, consisting of a particular number of characters,
and being closed with a particular line delimiter. |
ListLineTracker.java | Class | Abstract, read-only implementation of ILineTracker . |
Position.java | Class | Positions describe text ranges of a document. |
Region.java | Class | The default implementation of the
org.eclipse.jface.text.IRegion interface. |
RewriteSessionEditProcessor.java | Class | A text edit processor that brackets the application of edits into a document rewrite session. |
SequentialRewriteTextStore.java | Class | A text store that optimizes a given source text store for sequential rewriting.
While rewritten it keeps a list of replace command that serve as patches for
the source store. |
SlaveDocumentEvent.java | Class | A slave document event represents a master document event as a slave-relative
document event. |
TextMessages.java | Class | Helper class to get NLSed messages. |
TextUtilities.java | Class | A collection of text functions. |
TreeLineTracker.java | Class | Abstract implementation of ILineTracker . |
TypedPosition.java | Class | Convenience class for positions that have a type, similar to
org.eclipse.jface.text.ITypedRegion . |
TypedRegion.java | Class | Default implementation of
org.eclipse.jface.text.ITypedRegion . |