|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
A document partitioner for a text console.
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| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.eclipse.jface.text.IDocumentPartitioner |
|---|
computePartitioning, connect, disconnect, documentAboutToBeChanged, documentChanged, getContentType, getLegalContentTypes, getPartition |
| Method Detail |
public boolean isReadOnly(int offset)
offset - document offset
public StyleRange[] 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 requested
null if none
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.