Package org.freeplane.features.mode

Examples of org.freeplane.features.mode.ModeController.commit()


  void commit() {
      final MapModel currentMap = Controller.getCurrentController().getMap();
      LogicalStyleController.getController().refreshMap(currentMap);
      final ModeController currentModeController = Controller.getCurrentModeController();
    currentModeController.commit();
    }

  void rollback() {
      Controller.getCurrentModeController().rollback();
    }
View Full Code Here


    final ModeController modeController = Controller.getCurrentModeController();
    modeController.startTransaction();
    try{
      final int confirmed = JOptionPane.showConfirmDialog(controller.getMapViewManager().getMapViewComponent(), pane, TextUtils.getText(TextUtils.removeMnemonic("ManageNodeConditionalStylesAction.text")), JOptionPane.OK_CANCEL_OPTION,JOptionPane.PLAIN_MESSAGE);
      if(JOptionPane.OK_OPTION == confirmed){
        modeController.commit();
        modeController.getMapController().nodeChanged(controller.getSelection().getSelected(),NodeModel.UNKNOWN_PROPERTY,null,null);
      }
      else{
        modeController.rollback();
View Full Code Here

      modeController.startTransaction();
      try {
        ((MTextController) TextController.getController()).stopEditing();
      }
      finally {
        modeController.commit();
      }
    }
    }

  public void addNewSummaryNodeStartEditing(final int summaryLevel, final int start, final int end){
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.