private void init() {
delegate = new UndoRedoControllerBase();
// Make sure any pending edits are sent before an undo or
// redo request is handled:
delegate.addUndoRequestFilter(new UndoRequestFilter() {
@Override
public boolean preUndo() {
UndoableEditTimer.getTimer().sendNow();
return true;