Package org.openscience.cdk.controller
Class UndoAdapter
- java.lang.Object
-
- org.openscience.cdk.controller.UndoAdapter
-
- All Implemented Interfaces:
EventListener
,UndoableEditListener
public class UndoAdapter extends Object implements UndoableEditListener
An undo adapter for updating the state of the undo components according to the new state of the undo history list. Is registered as a listener to the undoSupport which is receiving the undo/redo events.- Author:
- tohel
- Source code:
- main
- Belongs to CDK module:
- control
-
-
Constructor Summary
Constructors Constructor Description UndoAdapter(UndoManager undoManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
undoableEditHappened(UndoableEditEvent arg0)
-
-
-
Constructor Detail
-
UndoAdapter
public UndoAdapter(UndoManager undoManager)
- Parameters:
undoManager
- The undoManager handling the undo/redo history list
-
-
Method Detail
-
undoableEditHappened
public void undoableEditHappened(UndoableEditEvent arg0)
- Specified by:
undoableEditHappened
in interfaceUndoableEditListener
-
-