use of com.intellij.ide.util.treeView.smartTree.SmartTreeStructure in project intellij-community by JetBrains.
the class StructureTreeBuilder method addRootToUpdate.
final void addRootToUpdate() {
final AbstractTreeStructure structure = getTreeStructure();
structure.asyncCommit().doWhenDone(() -> {
((SmartTreeStructure) structure).rebuildTree();
if (!isDisposed()) {
getUpdater().addSubtreeToUpdate(getRootNode());
}
});
}
use of com.intellij.ide.util.treeView.smartTree.SmartTreeStructure in project intellij-plugins by JetBrains.
the class CfmlStructureViewTest method getTopLevelItems.
private Object[] getTopLevelItems() {
StructureView structureView = createStructureViewModel();
final StructureViewModel structureViewModel = structureView.getTreeModel();
AbstractTreeStructure jsTreeStructure = new SmartTreeStructure(getProject(), structureViewModel);
Object[] items = jsTreeStructure.getChildElements(jsTreeStructure.getRootElement());
structureViewModel.dispose();
Disposer.dispose(structureView);
return items;
}
Aggregations