Package org.fusesource.ide.commons.tree

Examples of org.fusesource.ide.commons.tree.Refreshable.refresh()


    if (parent instanceof Refreshable) {
      final Viewer viewer = getViewer(node);
      final Object firstSelection = Selections.getFirstSelection(viewer);
      final String text = node.toString();
      Refreshable refreshable = (Refreshable) parent;
      refreshable.refresh();
      if (viewer != null) {
        Viewers.async(new Runnable() {
          @Override
          public void run() {
            if (firstSelection == node) {
View Full Code Here


            }
          }});
      }
    } else if (node instanceof Refreshable) {
      Refreshable refreshable = (Refreshable) node;
      refreshable.refresh();
    }

  }

  public static void refreshParentUsingFullPath(Node node) {
View Full Code Here

    if (parent instanceof Refreshable) {
      final LinkedList<String> path = new LinkedList<String>();
      final Node root = getRootAndAppendPath(path, node);
      final Viewer viewer = getViewer(node);
      Refreshable refreshable = (Refreshable) parent;
      refreshable.refresh();
      if (viewer != null) {
        Viewers.async(new Runnable() {
          @Override
          public void run() {
            selectPath(viewer, root, path);
View Full Code Here

            selectPath(viewer, root, path);
          }});
      }
    } else if (node instanceof Refreshable) {
      Refreshable refreshable = (Refreshable) node;
      refreshable.refresh();
    }

  }

View Full Code Here

    // so we can't easily find the nodes to expand again.
    //
    // refreshParent();
    if (getParent() instanceof Refreshable) {
      Refreshable refreshable = (Refreshable) getParent();
      refreshable.refresh();
    }

  }

  public void handleException(Node node, Exception e) {
View Full Code Here

   */
  private void refreshObjectNode(Object onode) {
    if (onode == null) return;
    if (onode instanceof Refreshable) {
      Refreshable refreshable = (Refreshable) onode;
      refreshable.refresh();
      refreshViewer(onode);
    }
  }
 
  /* (non-Javadoc)
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.