private static void markNodesObsolete(final XValueContainerNode<?> node) { node.setObsolete(); List<? extends XValueContainerNode<?>> loadedChildren = node.getLoadedChildren(); if (loadedChildren != null) { for (XValueContainerNode<?> child : loadedChildren) { markNodesObsolete(child); } } }
public void markNodesObsolete() { Object root = myTreeModel.getRoot(); if (root instanceof XValueContainerNode<?>) { markNodesObsolete((XValueContainerNode<?>) root); } }