|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Adapts an IDocument
to the StyledTextContent
interface.
The document adapter is used by TextViewer
to translate document changes
into styled text content changes and vice versa.
Clients may implement this interface and override TextViewer.createDocumentAdapter
if they want to intercept the communication between the viewer's text widget and
the viewer's document.
IDocument
,
StyledTextContent
Method Summary | |
void |
setDocument(IDocument document)
Sets the adapters document. |
Methods inherited from interface org.eclipse.swt.custom.StyledTextContent |
addTextChangeListener, getCharCount, getLine, getLineAtOffset, getLineCount, getLineDelimiter, getOffsetAtLine, getTextRange, removeTextChangeListener, replaceTextRange, setText |
Method Detail |
public void setDocument(IDocument document)
document
- the document to be adapted
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |