public interface IDocumentRange
It is used by text viewers that can work on a subrange of a document. For example, a text viewer for Java compilation units might use this to restrict the view to a single method.
Clients may implement this interface.
TextMergeViewer,
DocumentRangeNode| Modifier and Type | Field and Description |
|---|---|
static String |
RANGE_CATEGORY
The position category typically used for an
IDocumentRange position
(value "DocumentRangeCategory"). |
| Modifier and Type | Method and Description |
|---|---|
IDocument |
getDocument()
Returns the underlying document.
|
Position |
getRange()
Returns a position that specifies a subrange in the underlying document,
or
null if this document range spans the whole underlying document. |
static final String RANGE_CATEGORY
IDocumentRange position
(value "DocumentRangeCategory").IDocument getDocument()
Position getRange()
null if this document range spans the whole underlying document.nullGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.