Examples of canRedo()


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

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

      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

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

      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.canRedo()

                .getDataSource(dsName, DataSourceFactory.UNDOABLE);
        d.beginTrans();
        d.deleteRow(0);
        assertTrue(d.canUndo());
        d.removeField(1);
        assertTrue(!d.canRedo());
        assertTrue(!d.canUndo());
        d.rollBackTrans();
    }

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

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

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

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

    public void testNormal() throws Exception {
        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.canRedo()

       
        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());
View Full Code Here

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

        assertTrue(!cs.canRedo());
        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());
View Full Code Here

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

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

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

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