public static UpdateContainer createRegenerateWorksheetUpdates(
     String worksheetId, SuperSelection sel) {
   UpdateContainer c = new UpdateContainer();
   c.add(new RegenerateWorksheetUpdate(worksheetId));
   createWorksheetHierarchicalAndCleaningResultsUpdates(worksheetId, c, sel);
   return c;
 }
 public static UpdateContainer createSemanticTypesAndSVGAlignmentUpdates(
     String worksheetId, Workspace workspace, Alignment alignment) {
   Worksheet worksheet = workspace.getWorksheet(worksheetId);
   UpdateContainer c = new UpdateContainer();
   c.add(new SemanticTypesUpdate(worksheet, worksheetId, alignment));
   c.add(new AlignmentSVGVisualizationUpdate(worksheetId, alignment));
   return c;
 }
 public static UpdateContainer createWorksheetHierarchicalUpdates(
     String worksheetId, SuperSelection sel) {
   UpdateContainer c = new UpdateContainer();
   boolean showCleaningCharts = UIConfiguration.Instance().isD3ChartsEnabled();
   if (showCleaningCharts) c.add(new WorksheetCleaningUpdate(worksheetId, false, sel));
   createWorksheetHierarchicalUpdates(worksheetId, c, sel);
   return c;
 }
 private static void createWorksheetHierarchicalUpdates(
     String worksheetId, UpdateContainer c, SuperSelection sel) {
   c.add(new WorksheetHeadersUpdate(worksheetId));
   c.add(new WorksheetDataUpdate(worksheetId, sel));
   c.add(new WorksheetSuperSelectionListUpdate(worksheetId));
 }
 private static void createWorksheetHierarchicalAndCleaningResultsUpdates(
     String worksheetId, UpdateContainer c, SuperSelection sel) {
   boolean showCleaningCharts = UIConfiguration.Instance().isD3ChartsEnabled();
   if (showCleaningCharts) c.add(new WorksheetCleaningUpdate(worksheetId, true, sel));
   createWorksheetHierarchicalUpdates(worksheetId, c, sel);
 }