public interface IConsoleDocumentPartitioner extends IDocumentPartitioner
In addition to regular partitioner duties, a console document partitioner dictates which regions in its document are read-only and provides style ranges.
Clients may implement this interface.
TextConsole
Modifier and Type | Method and Description |
---|---|
StyleRange[] |
getStyleRanges(int offset,
int length)
Returns style ranges for the specified region of this partitioner's document
to use when rendering, or
null if none. |
boolean |
isReadOnly(int offset)
Returns whether this partitioner's document is read-only at the specified
offset.
|
computePartitioning, connect, disconnect, documentAboutToBeChanged, documentChanged, getContentType, getLegalContentTypes, getPartition
boolean isReadOnly(int offset)
offset
- document offsetStyleRange[] getStyleRanges(int offset, int length)
null
if none.offset
- beginning offset for which style ranges are requestedlength
- the length of text for which style ranges are requestednull
if none
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.