public interface IDocumentAdapter extends StyledTextContent
StyledTextContentinterface. The document adapter is used by
TextViewerto 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.
In order to provide backward compatibility for clients of
IDocumentAdapter, extension interfaces are used as a means of
evolution. The following extension interfaces exist:
IDocumentAdapterExtensionsince version 2.0 introducing a way of batching a sequence of document changes into a single styled text content notification
|Modifier and Type||Method and Description|
Sets the adapters document.
void setDocument(IDocument document)
document- the document to be adapted
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.