Class DocumentUndoManagerRegistry

This document undo manager registry provides access to a document's
undo manager. In order to connect a document a document undo manager
call connect. After that call has successfully completed
undo manager can be obtained via getDocumentUndoManager.
The undo manager is created on the first connect and disposed on the last
disconnect, i.e. this registry keeps track of how often a undo manager is
connected and returns the same undo manager to each client as long as the
document is connected.

Method Detail

connect

Connects the file at the given location to this manager. After that call
successfully completed it is guaranteed that each call to getFileBuffer
returns the same file buffer until disconnect is called.

getDocumentUndoManager

Returns the file buffer managed for the given location or null
if there is no such file buffer.

The provided location is either a full path of a workspace resource or
an absolute path in the local file system. The file buffer manager does
not resolve the location of workspace resources in the case of linked
resources.