Friday, February 19, 2010

Getting project TreeNode iterator

It is extremely not obvious how to get TreeNode iterator pointing to a project node. Projects cannot be accessed from the AOT root node which is retrieved by TreeNode::rootNode() method. To get to projects root node the following method should be used: infolog.projectRootNode(). Afterwards projects can be traversed from there.

6 comments:

  1. I find it easier to use the static methods from the SysTreeNode class:

    SysTreeNode::getPrivateProject()
    SysTreeNode::getSharedProject()

    which incorporate the infoLog.projectRootNode() call.

    ReplyDelete