@Override public void run(IndexingContext context) throws IOException { TreeViewRequest request = new TreeViewRequest(factory, path, hints, artifactInfoFilter, context); // TODO igorf // TreeNode.listChildren lists children on demand using provided context // if context is closed asynchronously, the method will return empty list. // should through IllegalStateException instead. result[0] = indexTreeView.listNodes(request); } });
/** * Get the children of this node. If this is a leaf node, null will be returned. This will use the index to retrieve * the list of child nodes. * * @return List<TreeNode> */ public List<TreeNode> listChildren() throws IOException { if ( !isLeaf() && getChildren().isEmpty() && !isLeaf() ) { children = treeView.listNodes( new TreeViewRequest( request.getFactory(), getPath(), request.getFieldHints(), request.getArtifactInfoFilter(), request.getIndexingContext() ) ).getChildren(); } return children; }
/** * Get the children of this node. If this is a leaf node, null will be returned. This will use the index to retrieve * the list of child nodes. * * @return List<TreeNode> */ public List<TreeNode> listChildren() throws IOException { if ( !isLeaf() && getChildren().isEmpty() && !isLeaf() ) { children = treeView.listNodes( new TreeViewRequest( request.getFactory(), getPath(), request.getFieldHints(), request.getArtifactInfoFilter(), request.getIndexingContext() ) ).getChildren(); } return children; }
/** * Get the children of this node. If this is a leaf node, null will be returned. This will use the index to retrieve * the list of child nodes. * * @return List<TreeNode> */ public List<TreeNode> listChildren() throws IOException { if ( !isLeaf() && getChildren().isEmpty() && !isLeaf() ) { children = treeView.listNodes( new TreeViewRequest( request.getFactory(), getPath(), request.getFieldHints(), request.getArtifactInfoFilter(), request.getIndexingContext() ) ).getChildren(); } return children; }