Package org.freeplane.core.undo

Examples of org.freeplane.core.undo.IUndoHandler.startTransaction()


    if(styleMap == null){
      UITools.errorMessage(TextUtils.getText("no_styles_found_in_map"));
      return;
    }
    final IUndoHandler undoHandler = (IUndoHandler) map.getExtension(IUndoHandler.class);
    undoHandler.startTransaction();
    init();
    SModeController modeController = getModeController();
    modeController.getMapController().newMapView(styleMap);
    Controller controller = modeController.getController();
    Component mapViewComponent = controller.getMapViewManager().getMapViewComponent();
View Full Code Here


        if(transactionLevel == 0){
            return;
        }
    if(transactionLevel == 1){
        oldUndoHandler.commit();
        newUndoHandler.startTransaction();
        return;
    }
    throw new RuntimeException("can not create map inside transaction");
  }
View Full Code Here

  @Override
  public void startTransaction() {
    final MapModel map = getController().getMap();
    final IUndoHandler undoHandler = map.getExtension(IUndoHandler.class);
    undoHandler.startTransaction();
  }

  @Override
  public void forceNewTransaction() {
    final MapModel map = getController().getMap();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.