Ejemplo n.º 1
0
 private static void markNodesObsolete(final XValueContainerNode<?> node) {
   node.setObsolete();
   List<? extends XValueContainerNode<?>> loadedChildren = node.getLoadedChildren();
   if (loadedChildren != null) {
     for (XValueContainerNode<?> child : loadedChildren) {
       markNodesObsolete(child);
     }
   }
 }
Ejemplo n.º 2
0
 private boolean expandIfEllipsis() {
   MessageTreeNode[] treeNodes = getSelectedNodes(MessageTreeNode.class, null);
   if (treeNodes.length == 1) {
     MessageTreeNode node = treeNodes[0];
     if (node.isEllipsis()) {
       TreeNode parent = node.getParent();
       if (parent instanceof XValueContainerNode) {
         ((XValueContainerNode) parent).startComputingChildren();
         return true;
       }
     }
   }
   return false;
 }