Examples of canUndo()


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

        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

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

        cs.undo();
        assertTrue(cs.canRedo());
        assertTrue(cs.canUndo());
        cs.undo();
        assertTrue(cs.canRedo());
        assertTrue(!cs.canUndo());
    }
   
    public void testLimit() throws Exception {
        CommandStack cs = new CommandStack();
        cs.setLimit(2);
View Full Code Here

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

        cs.put(new C(2));
        cs.put(new C(3));
        assertTrue(cs.undo().equals(new C(3)));
        assertTrue(cs.undo().equals(new C(2)));
        assertTrue(cs.canRedo());
        assertTrue(!cs.canUndo());
    }
   
    public void testPutUndoPut() throws Exception {
        CommandStack cs = new CommandStack();
        cs.setUseLimit(false);
View Full Code Here

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

        assertTrue(cs.undo().equals(new C(2)));
        assertTrue(cs.redo().equals(new C(2)));
        assertTrue(cs.canRedo());
        cs.put(new C(3));
        assertTrue(!cs.canRedo());
        assertTrue(cs.canUndo());
    }
   
    public class C implements Command {

        private int id;
View Full Code Here

Examples of org.openbp.jaspira.undo.UndoMgr.canUndo()

    public JaspiraEventHandlerCode undo(JaspiraActionEvent je)
    {
      if (currentModeler != null)
      {
        UndoMgr undoMgr = currentModeler.getUndoMgr();
        if (undoMgr.canUndo())
        {
          undoMgr.undo();
          return EVENT_CONSUMED;
        }
      }
View Full Code Here

Examples of slash.navigation.gui.undo.UndoManager.canUndo()

    // handle notifications

    private void handleUndoUpdate() {
        ActionManager actionManager = Application.getInstance().getContext().getActionManager();
        UndoManager undoManager = Application.getInstance().getContext().getUndoManager();
        actionManager.enable("undo", undoManager.canUndo());
        actionManager.enable("redo", undoManager.canRedo());
    }

    private void handleRoutesUpdate() {
        NavigationFormat format = formatAndRoutesModel.getFormat();
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.