Package edu.isi.karma.controller.update

Examples of edu.isi.karma.controller.update.WorksheetDeleteUpdate


    }
   
    UpdateContainer update = new UpdateContainer();
    update.add(new WorksheetListUpdate());
    if(worksheetExists) {
      update.add(new WorksheetDeleteUpdate(worksheetId));
      update.add(new HistoryUpdate(workspace.getCommandHistory()));
    }
    return update;
  }
View Full Code Here


        JSONObject jsonAnnotationCluster = new JSONObject (worksheet.getJsonAnnotation().toString());
        String clusterWorksheetId = jsonAnnotationCluster.get("ClusterId").toString();
        if(workspace.getWorksheet(clusterWorksheetId) != null) {
          DeleteWorksheetCommand deleteWorkseet = new DeleteWorksheetCommand(id, clusterWorksheetId );
          deleteWorkseet.doIt(workspace);
          c.add(new WorksheetDeleteUpdate(clusterWorksheetId));
        }
        jsonAnnotationCluster.remove("cluster");
      }
     
      JSONObject ClusterAnnotation = new JSONObject();
View Full Code Here

    UpdateContainer c = new UpdateContainer();
    if (this.newWorksheetId != null) {
      workspace.removeWorksheet(newWorksheetId);
      workspace.getFactory().removeWorksheet(newWorksheetId, workspace.getCommandHistory());
      c.add(new WorksheetListUpdate());
      c.add(new WorksheetDeleteUpdate(newWorksheetId));
    }
    if (this.newHNodeId != null) {
      Worksheet worksheet = workspace.getWorksheet(worksheetId);
      HNode ndid = workspace.getFactory().getHNode(newHNodeId);
      HTable currentTable = workspace.getFactory().getHTable(ndid.getHTableId());
View Full Code Here

    UpdateContainer c = new UpdateContainer();
    if (this.newWorksheetId != null) {
      workspace.removeWorksheet(newWorksheetId);
      workspace.getFactory().removeWorksheet(newWorksheetId, workspace.getCommandHistory());
      c.add(new WorksheetListUpdate());
      c.add(new WorksheetDeleteUpdate(newWorksheetId));
    }
    if (this.newHNodeId != null) {
      Worksheet worksheet = workspace.getWorksheet(worksheetId);
      HNode ndid = workspace.getFactory().getHNode(newHNodeId);
      HTable currentTable = workspace.getFactory().getHTable(ndid.getHTableId());
View Full Code Here

    WorkspaceRegistry.getInstance().deregister(workspaceId);
    VWorkspaceRegistry.getInstance().deregisterVWorkspace(workspaceId);
    for (Worksheet worksheet : workspace.getWorksheets()) {
      workspace.getFactory().removeWorksheet(worksheet.getId(), workspace.getCommandHistory());
      workspace.removeWorksheet(worksheet.getId());
      uc.add(new WorksheetDeleteUpdate(worksheet.getId()));
    }
    return uc;
  }
View Full Code Here

TOP

Related Classes of edu.isi.karma.controller.update.WorksheetDeleteUpdate

Copyright © 2018 www.massapicom. 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.