@Override public UpdateContainer undoIt(Workspace workspace) { CommandHistoryUtil historyUtil = new CommandHistoryUtil(Collections.EMPTY_LIST, workspace, volatileWorksheetId); UpdateContainer updateContainer = historyUtil.replayHistory(historyCommandsBackup); this.volatileWorksheetId = historyUtil.getWorksheetId(); return updateContainer; }
public void deleteExistingTransformationCommands() { CommandHistory history = workspace.getCommandHistory(); CommandHistoryUtil util = new CommandHistoryUtil(history.getCommandsFromWorksheetId(worksheetId), workspace, worksheetId); Set<String> outputColumns = util.generateOutputColumns(); JSONArray newHistoryJSON = new JSONArray();
public void deleteExistingTransformationAndModelingCommands() { CommandHistory history = workspace.getCommandHistory(); CommandHistoryUtil util = new CommandHistoryUtil(history.getCommandsFromWorksheetId(worksheetId), workspace, worksheetId); Set<String> outputColumns = util.generateOutputColumns(); JSONArray newHistoryJSON = new JSONArray();
@Override public UpdateContainer doIt(Workspace workspace) throws CommandException { CommandHistory history = workspace.getCommandHistory(); UpdateContainer updateContainer = new UpdateContainer(); if (history.isStale(worksheetId)) { CommandHistoryUtil util = new CommandHistoryUtil(history.getCommandsFromWorksheetId(worksheetId), workspace, worksheetId); updateContainer.append(util.replayHistory()); updateContainer.add(new HistoryUpdate(history)); } return updateContainer; }
Property.oldCommandHistory, oldCommandsArray.toString()); CommandHistoryUtil historyUtil = new CommandHistoryUtil(history.getCommandsFromWorksheetId(worksheetId), workspace, worksheetId); boolean isHistoryStale = history.isStale(worksheetId); if (isHistoryStale) { worksheet = workspace.getWorksheet(worksheetId); selection = getSuperSelection(worksheet); historyUtil = new CommandHistoryUtil(history.getCommandsFromWorksheetId(worksheetId), workspace, worksheetId);
historyCommandsBackup.put(workspace.getCommandHistory().getCommandJSON(workspace, command)); CommandHistoryUtil historyUtil = new CommandHistoryUtil(commands, workspace, volatileWorksheetId); if (isDelete) { historyUtil.removeCommands(commandSet);