Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Platform
Release 3.5

Interface IDocumentAdapter

All Superinterfaces:

public interface IDocumentAdapter
extends StyledTextContent

Adapts an IDocumentto 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.

In order to provide backward compatibility for clients of IDocumentAdapter, extension interfaces are used as a means of evolution. The following extension interfaces exist:

  • IDocumentAdapterExtension since version 2.0 introducing a way of batching a sequence of document changes into a single styled text content notification

See Also:
IDocumentAdapterExtension, IDocument

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


void setDocument(
IDocument document)
Sets the adapters document.

document - the document to be adapted

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire