private void queueUpdateByProblem() { if (Registry.is("projectView.showHierarchyErrors")) { if (myTreeBuilder != null) { myTreeBuilder.queueUpdate(); } } }
public ActionCallback expand(DefaultMutableTreeNode node) { final Object userObject = node.getUserObject(); if (!(userObject instanceof NodeDescriptor)) return new ActionCallback.Rejected(); NodeDescriptor desc = (NodeDescriptor) userObject; final Object element = myBuilder.getTreeStructureElement(desc); final ActionCallback result = new ActionCallback(); myBuilder.expand( element, new Runnable() { public void run() { result.setDone(); } }); return result; }
@Override public ActionCallback getReady(@NotNull Object requestor) { if (myTreeBuilder == null || myTreeBuilder.isDisposed()) return new ActionCallback.Rejected(); return myTreeBuilder.getUi().getReady(requestor); }
public ActionCallback getIntialized() { return myBuilder.getIntialized(); }
private static TreeFacade getFacade(JTree tree) { final AbstractTreeBuilder builder = AbstractTreeBuilder.getBuilderFor(tree); return builder != null ? new BuilderFacade(builder) : new JTreeFacade(tree); }