Examples of executeAllCommands()


Examples of edu.isi.karma.controller.history.WorksheetCommandHistoryExecutor.executeAllCommands()

      if (history.isEmpty()) {
        return new UpdateContainer(new ErrorUpdate("No history found in R2RML Model!"));
      }
     
      JSONArray historyJson = new JSONArray(history);
      histExecutor.executeAllCommands(historyJson);
     
      // Add worksheet updates that could have resulted out of the transformation commands
      UpdateContainer c = WorksheetUpdateFactory.createRegenerateWorksheetUpdates(worksheetId, SuperSelectionManager.DEFAULT_SELECTION);
      c.append(computeAlignmentAndSemanticTypesAndCreateUpdates(workspace));
      c.add(new InfoUpdate("Model successfully applied!"));
View Full Code Here

Examples of edu.isi.karma.controller.history.WorksheetCommandHistoryExecutor.executeAllCommands()

  public UpdateContainer doIt(Workspace workspace) throws CommandException {
   
    try {
      JSONArray historyJSON = CommandHistory.getHistorySaver(workspace.getId()).loadHistory(historyFile.getAbsolutePath());
      WorksheetCommandHistoryExecutor histExecutor = new WorksheetCommandHistoryExecutor(worksheetId, workspace);
      histExecutor.executeAllCommands(historyJSON);
    } catch (Exception e) {
      String msg = "Error occured while applying history!";
      logger.error(msg, e);
      return new UpdateContainer(new ErrorUpdate(msg));
    }
View Full Code Here

Examples of edu.isi.karma.controller.history.WorksheetCommandHistoryExecutor.executeAllCommands()

      else {
        editor.deleteExistingTransformationAndModelingCommands();
        historyJson = editor.getHistoryJSON();
      }
      System.out.println(editor.getHistoryJSON().toString(4));
      UpdateContainer hc = histExecutor.executeAllCommands(historyJson);
      if(hc != null) {
        hc.removeUpdateByClass(HistoryAddCommandUpdate.class);
        hc.removeUpdateByClass(InfoUpdate.class);
        hc.removeUpdateByClass(ErrorUpdate.class);
        hc.removeUpdateByClass(AlignmentSVGVisualizationUpdate.class);
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.