private void removeChildren(@NotNull DefaultMutableTreeNode node) { EnumerationCopy copy = new EnumerationCopy(node.children()); while (copy.hasMoreElements()) { disposeNode((DefaultMutableTreeNode)copy.nextElement()); } node.removeAllChildren(); myTreeModel.nodeStructureChanged(node); }
private void removeChildren(@Nonnull DefaultMutableTreeNode node) { EnumerationCopy copy = new EnumerationCopy(node.children()); while (copy.hasMoreElements()) { disposeNode((DefaultMutableTreeNode)copy.nextElement()); } node.removeAllChildren(); nodeStructureChanged(node); }