Examples of undo()


Examples of ch.rakudave.jnetmap.controller.command.CommandHistory.undo()

    return new AbstractAction(Lang.getNoHTML("menu.undo"), Icons.get("undo")) {
      @Override
      public void actionPerformed(ActionEvent e) {
        CommandHistory history = Controller.getCurrentMap().getHistory();
        try {
          history.undo();
        } catch (Exception ex) {
          Logger.error("An error occured during the last 'undo'", ex);
        }
      }
    };
View Full Code Here

Examples of com.citytechinc.cq.component.annotations.widgets.rte.Undo.undo()

      Undo undoAnnotation = rteAnnotation.undo()[0];
      List<String> features = new ArrayList<String>();

      int maxUndoSteps = undoAnnotation.maxUndoSteps();

      if (undoAnnotation.undo()) {
        features.add("undo");
      }

      if (undoAnnotation.redo()) {
        features.add("redo");
View Full Code Here

Examples of com.exigen.ie.constrainer.Undo.undo()

    int nUndos = size - newSize;
    while(nUndos-- > 0)
    {
      Undo undo_object = popUndo();
      undo_object.undo();
    }
  }

  public String toString()
  {
View Full Code Here

Examples of com.ibm.richtext.textpanel.MTextPanel.undo()

        protected void performAction() {
           
            MTextPanel panel = getTextPanel();
            if (fKind == UNDO) {
                panel.undo();
            }
            else {
                panel.redo();
            }
        }
View Full Code Here

Examples of com.jcloisterzone.event.MeepleEvent.undo()

        Phase phase = game.getPhase();
        phase.deployMeeple(new Position(1, -3), Location.NE, BigFollower.class);
        assertEquals(1, game.events.size());

        MeepleEvent ev = (MeepleEvent) game.events.get(0);
        ev.undo(game);
        game.setPhase(phase);

        String s2 = snapshotGame(game);
        assertEquals(s1, s2);
    }
View Full Code Here

Examples of com.jcloisterzone.event.TileEvent.undo()

        Phase phase = game.getPhase();
        phase.placeTile(Rotation.R90, new Position(-2, 0));
        assertEquals(1, game.events.size());

        TileEvent ev = (TileEvent) game.events.get(0);
        ev.undo(game);
        game.setPhase(phase);

        String s2 = snapshotGame(game);
        assertEquals(s1, s2);
    }
View Full Code Here

Examples of com.jcloisterzone.event.TowerIncreasedEvent.undo()

        Phase phase = game.getPhase();
        phase.placeTowerPiece(new Position(1, -2));
        //assertEquals(2, game.events.size()); //TowerIncreasedEvent, SelectActionEvent

        TowerIncreasedEvent ev = (TowerIncreasedEvent) game.events.get(0);
        ev.undo(game);
        game.setPhase(phase);

        String s2 = snapshotGame(game);
        assertEquals(s1, s2);
    }
View Full Code Here

Examples of com.kellerkindt.scs.internals.Transaction.undo()

       
        Transaction t = ShowCaseStandalone.pv.getLastTransaction(player);
        if(t == null)
            Messaging.send(player, Term.ERROR_UNDO_NO_AVAILABLE.get());
        else {
            if(!t.undo())
                Messaging.send(player, t.returnMessage);
        }
       
        return true;
    }
View Full Code Here

Examples of com.projity.undo.UndoController.undo()

      return;
    finishAnyOperations();
    UndoController undoController=getUndoController();
    if (undoController!=null){
      if (isUndo)
        undoController.undo();
      else
        undoController.redo();
      refreshUndoButtons();
    }
  }
View Full Code Here

Examples of com.sk89q.worldedit.history.change.Change.undo()

    @Override
    public Operation resume(RunContext run) throws WorldEditException {
        while (iterator.hasNext()) {
            Change change = iterator.next();
            if (type == Type.UNDO) {
                change.undo(context);
            } else {
                change.redo(context);
            }
        }
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.