Package org.freeplane.core.undo

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


        final Object eventSource = e.getSource();
        if (!eventSource.equals(undoHandler)) {
          return;
        }
        setEnabled(undoHandler.canUndo());
        redo.setEnabled(undoHandler.canRedo());
      }
    };
  }

  public void actionPerformed(final ActionEvent e) {
View Full Code Here


      return;
    }
    final IUndoHandler undoHandler = (newMap.getExtension(IUndoHandler.class));
    if (undoHandler != null) {
      setEnabled(undoHandler.canUndo());
      redo.setEnabled(undoHandler.canRedo());
      undoHandler.addChangeListener(changeListener);
    }
  }
  @Override
    public void afterMapChange(final Object newMap) {};
View Full Code Here

      mapController.displayNode(lastChangedNode);
      controller.getSelection().selectAsTheOnlyOneSelected(lastChangedNode);
      lastChangedNode = null;
    }
    undo.setEnabled(undoHandler.canUndo());
    setEnabled(undoHandler.canRedo());
    }
    finally{
      mapController.removeNodeChangeListener(this);
    }
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.