Search in sources :

Example 11 with IUndoHandler

use of org.freeplane.core.undo.IUndoHandler in project freeplane by freeplane.

the class ControllerProxy method redo.

public void redo() {
    final MapModel map = Controller.getCurrentController().getMap();
    final IUndoHandler undoHandler = (IUndoHandler) map.getExtension(IUndoHandler.class);
    undoHandler.redo();
}
Also used : IUndoHandler(org.freeplane.core.undo.IUndoHandler) MMapModel(org.freeplane.features.map.mindmapmode.MMapModel) MapModel(org.freeplane.features.map.MapModel)

Example 12 with IUndoHandler

use of org.freeplane.core.undo.IUndoHandler in project freeplane by freeplane.

the class MModeController method rollback.

@Override
public void rollback() {
    final MapModel map = getController().getMap();
    final IUndoHandler undoHandler = map.getExtension(IUndoHandler.class);
    undoHandler.rollback();
}
Also used : IUndoHandler(org.freeplane.core.undo.IUndoHandler) MMapModel(org.freeplane.features.map.mindmapmode.MMapModel) MapModel(org.freeplane.features.map.MapModel)

Example 13 with IUndoHandler

use of org.freeplane.core.undo.IUndoHandler in project freeplane by freeplane.

the class MModeController method addUndoableActor.

private void addUndoableActor(final IActor actor, final MapModel map) {
    final IUndoHandler undoHandler = map.getExtension(IUndoHandler.class);
    undoHandler.addActor(actor);
}
Also used : IUndoHandler(org.freeplane.core.undo.IUndoHandler)

Example 14 with IUndoHandler

use of org.freeplane.core.undo.IUndoHandler in project freeplane by freeplane.

the class MModeController method commit.

@Override
public void commit() {
    final MapModel map = getController().getMap();
    final IUndoHandler undoHandler = map.getExtension(IUndoHandler.class);
    undoHandler.commit();
}
Also used : IUndoHandler(org.freeplane.core.undo.IUndoHandler) MMapModel(org.freeplane.features.map.mindmapmode.MMapModel) MapModel(org.freeplane.features.map.MapModel)

Example 15 with IUndoHandler

use of org.freeplane.core.undo.IUndoHandler in project freeplane by freeplane.

the class MModeController method startTransaction.

@Override
public void startTransaction() {
    final MapModel map = getController().getMap();
    final IUndoHandler undoHandler = map.getExtension(IUndoHandler.class);
    undoHandler.startTransaction();
}
Also used : IUndoHandler(org.freeplane.core.undo.IUndoHandler) MMapModel(org.freeplane.features.map.mindmapmode.MMapModel) MapModel(org.freeplane.features.map.MapModel)

Aggregations

IUndoHandler (org.freeplane.core.undo.IUndoHandler)21 MapModel (org.freeplane.features.map.MapModel)15 MMapModel (org.freeplane.features.map.mindmapmode.MMapModel)10 Controller (org.freeplane.features.mode.Controller)4 IActor (org.freeplane.core.undo.IActor)3 NodeModel (org.freeplane.features.map.NodeModel)3 IMapViewManager (org.freeplane.features.ui.IMapViewManager)3 ModeController (org.freeplane.features.mode.ModeController)2 LogicalStyleController (org.freeplane.features.styles.LogicalStyleController)2 ViewController (org.freeplane.features.ui.ViewController)2 Component (java.awt.Component)1 Window (java.awt.Window)1 ComponentAdapter (java.awt.event.ComponentAdapter)1 ComponentEvent (java.awt.event.ComponentEvent)1 WindowAdapter (java.awt.event.WindowAdapter)1 WindowEvent (java.awt.event.WindowEvent)1 JDialog (javax.swing.JDialog)1 WindowConfigurationStorage (org.freeplane.core.resources.WindowConfigurationStorage)1 MapStyleModel (org.freeplane.features.styles.MapStyleModel)1