private void queueUpdateByProblem() {
   if (Registry.is("projectView.showHierarchyErrors")) {
     if (myTreeBuilder != null) {
       myTreeBuilder.queueUpdate();
     }
   }
 }
Ejemplo n.º 2
0
    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);
 }
Ejemplo n.º 4
0
 public ActionCallback getIntialized() {
   return myBuilder.getIntialized();
 }
Ejemplo n.º 5
0
 private static TreeFacade getFacade(JTree tree) {
   final AbstractTreeBuilder builder = AbstractTreeBuilder.getBuilderFor(tree);
   return builder != null ? new BuilderFacade(builder) : new JTreeFacade(tree);
 }