Package org.eclipse.handly.xtext.ui.editor

# Interface IHandlyXtextDocument.IUndoableUnitOfWork<R,P>

All Superinterfaces:
  `org.eclipse.xtext.util.concurrent.IUnitOfWork<R,P>`

Enclosing interface:
  IHandlyXtextDocument

public static interface IHandlyXtextDocument.IUndoableUnitOfWork<R,P> extends org.eclipse.xtext.util.concurrent.IUnitOfWork<R,P>
Represents an undoable unit of work.

If a top-level modifying unit of work is undoable, it will be `informed` of an undo change that can be `applied` to the document to revert any `modifications` made by the whole transaction.

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from interface org.eclipse.xtext.util.concurrent.IUnitOfWork

  `org.eclipse.xtext.util.concurrent.IUnitOfWork.Void<T extends Object>`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `acceptUndoChange(IDocumentChange undoChange)`
  Informs this unit of work of an undo change.

  ### Methods inherited from interface org.eclipse.xtext.util.concurrent.IUnitOfWork

  `exec`

- ## Method Details

  - ### acceptUndoChange

    void acceptUndoChange(IDocumentChange undoChange)
    Informs this unit of work of an undo change.
    Parameters:
      `undoChange` - never `null`