Exemple #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);
     }
   }
 }
Exemple #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;
 }