textEdit = joinTextEdits(result, textEdit);
result.add(textEdit);
} else if (activityDataObject instanceof TextSelectionActivityDataObject) {
selection = (TextSelectionActivityDataObject) activityDataObject;
} else if (activityDataObject instanceof ViewportActivityDataObject) {
ViewportActivityDataObject viewActivity = (ViewportActivityDataObject) activityDataObject;
viewport.remove(viewActivity.getPath());
viewport.put(viewActivity.getPath(), viewActivity);
} else if (activityDataObject instanceof FolderActivityDataObject) {
FolderActivityDataObject folderEdit = (FolderActivityDataObject) activityDataObject;
foldRecursiveDelete(result, folderEdit);
} else {
result.add(activityDataObject);