Examples of undoIt()


Examples of edu.isi.karma.controller.command.Command.undoIt()

  @Override
  public UpdateContainer undoIt(Workspace workspace) {
    UpdateContainer c =  new UpdateContainer();
    while (!appliedCommands.isEmpty()) {
      Command command = appliedCommands.pop();
      command.undoIt(workspace);
    }
    c.append(WorksheetUpdateFactory.createRegenerateWorksheetUpdates(worksheetId, getSuperSelection(workspace)));
    c.append(computeAlignmentAndSemanticTypesAndCreateUpdates(workspace));
    return c;
  }
View Full Code Here

Examples of edu.isi.karma.controller.command.Command.undoIt()

        if (HistoryJsonUtil.getStringValue(HistoryArguments.worksheetId.name(), json).equals(worksheetId)) {
          commandsToBeRemoved.add(command);
          Command tmp = (Command)command;
          if (tmp.getCommandType() == CommandType.undoable) {
            try {
              tmp.undoIt(workspace);
            }catch(Exception e) {

            }
          }
        }
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.