Note

You are not reading the most recent version of this documentation.

ShadowProjectTree

public class ShadowProjectTree

A copy of the tree of ProjectTreeNode that can be safely accessed from another thread.

Normally ProjectTreeNode objects can only be accessed during the callbacks on the SessionListener. This class creates a shadow copy of the tree that can be accessed at any time. The basic idea is that Updates to the tree are recorded in the background thread during the callbacks on the SessionListener. These updates are then consumed by the other thread when it has the oppurtunity to do so.

Constructors

ShadowProjectTree

public ShadowProjectTree()

Methods

nodeFor

public Node nodeFor(ProjectContext context, io.cocotec.popili.coco.Node astNode)

prepareUpdate

public Update prepareUpdate(List<ProjectTreeNode> created, List<ProjectTreeNode> deleted, List<ProjectTreeNode> modified)

rootNode

public Node rootNode(Project project)