Package org.olat.core.util.tree

Examples of org.olat.core.util.tree.Visitor


 
  private void upgradeRunStructure(ICourse course) {
    Structure cR = course.getRunStructure();
    CourseNode rsRootNode = cR.getRootNode();
    final Set<String> allSubTreeids = new HashSet<String>();
    TreeVisitor tv = new TreeVisitor(new Visitor() {
      public void visit(INode node) {
        allSubTreeids.add(node.getIdent());
      }
    }, rsRootNode, true);
    tv.visitAll();
View Full Code Here


  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();
View Full Code Here

TOP

Related Classes of org.olat.core.util.tree.Visitor

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.