Examples of canUndo()


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

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

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

    if(lastChangedNode != null){
      mapController.displayNode(lastChangedNode);
      controller.getSelection().selectAsTheOnlyOneSelected(lastChangedNode);
      lastChangedNode = null;
    }
    undo.setEnabled(undoHandler.canUndo());
    setEnabled(undoHandler.canRedo());
    }
    finally{
      mapController.removeNodeChangeListener(this);
    }
View Full Code Here

Examples of org.gdbms.engine.data.AlphanumericDataSource.canUndo()

            throws Exception {
        AlphanumericDataSource d = (AlphanumericDataSource) ds
                .getDataSource(dsName, DataSourceFactory.UNDOABLE);
        d.beginTrans();
        d.deleteRow(0);
        assertTrue(d.canUndo());
        d.removeField(1);
        assertTrue(!d.canRedo());
        assertTrue(!d.canUndo());
        d.rollBackTrans();
    }
View Full Code Here

Examples of org.gdbms.engine.data.AlphanumericDataSource.canUndo()

        d.beginTrans();
        d.deleteRow(0);
        assertTrue(d.canUndo());
        d.removeField(1);
        assertTrue(!d.canRedo());
        assertTrue(!d.canUndo());
        d.rollBackTrans();
    }

    public void testUndoRedoClearedAfterEdition() throws Exception {
        testUndoRedoClearedAfterEdition("persona");
View Full Code Here

Examples of org.gdbms.engine.data.SpatialDataSource.canUndo()

        ds.getDataSource("spatialobjectpersona",
                DataSourceFactory.UNDOABLE);
       
        d.beginTrans();
        d.deleteRow(1);
        assertTrue(d.canUndo());
        d.buildIndex();
        assertTrue(!d.canUndo());
        assertTrue(!d.canRedo());
    }
   
View Full Code Here

Examples of org.gdbms.engine.data.SpatialDataSource.canUndo()

       
        d.beginTrans();
        d.deleteRow(1);
        assertTrue(d.canUndo());
        d.buildIndex();
        assertTrue(!d.canUndo());
        assertTrue(!d.canRedo());
    }
   
    public void testInsertModify() throws Exception {
        SpatialDataSource d = (SpatialDataSource)
View Full Code Here

Examples of org.gdbms.engine.data.command.CommandStack.canUndo()

        CommandStack cs = new CommandStack();
        cs.setLimit(3);
        cs.setUseLimit(true);
       
        assertTrue(!cs.canRedo());
        assertTrue(!cs.canUndo());
       
        cs.put(new C());
        assertTrue(!cs.canRedo());
        assertTrue(cs.canUndo());
       
View Full Code Here

Examples of org.gdbms.engine.data.command.CommandStack.canUndo()

        assertTrue(!cs.canRedo());
        assertTrue(!cs.canUndo());
       
        cs.put(new C());
        assertTrue(!cs.canRedo());
        assertTrue(cs.canUndo());
       
        cs.put(new C());
        cs.put(new C());
        assertTrue(!cs.canRedo());
        assertTrue(cs.canUndo());
View Full Code Here

Examples of org.gdbms.engine.data.command.CommandStack.canUndo()

        assertTrue(cs.canUndo());
       
        cs.put(new C());
        cs.put(new C());
        assertTrue(!cs.canRedo());
        assertTrue(cs.canUndo());

        cs.undo();
        assertTrue(cs.canRedo());
        assertTrue(cs.canUndo());
        cs.undo();
View Full Code Here

Examples of org.gdbms.engine.data.command.CommandStack.canUndo()

        assertTrue(!cs.canRedo());
        assertTrue(cs.canUndo());

        cs.undo();
        assertTrue(cs.canRedo());
        assertTrue(cs.canUndo());
        cs.undo();
        assertTrue(cs.canRedo());
        assertTrue(cs.canUndo());
        cs.undo();
        assertTrue(cs.canRedo());
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.