}
private void upgradeEditorTreeModel(ICourse course) {
// EDITOR: get all course nodes
CourseEditorTreeModel cT = course.getEditorTreeModel();
TreeNode rootNode = cT.getRootNode();
final Set<String> allSubTreeids = new HashSet<String>();
TreeVisitor tv = new TreeVisitor(new Visitor() {
public void visit(INode node) {
allSubTreeids.add(node.getIdent());
}
}, rootNode, true);
tv.visitAll();
CourseEditorTreeModel editorTreeModel = course.getEditorTreeModel();
// EDITOR: loop all course nodes
int nodeCounter = 0;
for (Iterator<String> iterator2 = allSubTreeids.iterator(); iterator2.hasNext();) {
String nodeId = iterator2.next();
CourseNode cetn = editorTreeModel.getCourseNode(nodeId);
// migrate if this node is a Task
if (cetn.getType().equals(TACourseNode.CONF_TASK_TYPE)) {
migrateSingleTask(cetn);
}
// migrate no access text for every node: