Search in sources :

Example 1 with NodeDescriptor

use of org.eclipse.che.ide.ui.smartTree.NodeDescriptor in project che by eclipse.

the class ProjectExplorerPresenter method onSyntheticNodeUpdate.

@Override
public void onSyntheticNodeUpdate(SyntheticNodeUpdateEvent event) {
    final Tree tree = getTree();
    final NodeDescriptor descriptor = tree.getNodeDescriptor(event.getNode());
    if (descriptor == null) {
        return;
    }
    if (descriptor.isLoaded()) {
        tree.getNodeLoader().loadChildren(event.getNode(), false);
    }
}
Also used : NodeDescriptor(org.eclipse.che.ide.ui.smartTree.NodeDescriptor) Tree(org.eclipse.che.ide.ui.smartTree.Tree)

Aggregations

NodeDescriptor (org.eclipse.che.ide.ui.smartTree.NodeDescriptor)1 Tree (org.eclipse.che.ide.ui.smartTree.Tree)1