Java 类com.intellij.util.enumeration.EnumerationCopy 实例源码

项目:intellij-ce-playground    文件:AbstractTreeUi.java   
private void removeChildren(@NotNull DefaultMutableTreeNode node) {
  EnumerationCopy copy = new EnumerationCopy(node.children());
  while (copy.hasMoreElements()) {
    disposeNode((DefaultMutableTreeNode)copy.nextElement());
  }
  node.removeAllChildren();
  myTreeModel.nodeStructureChanged(node);
}
项目:tools-idea    文件:AbstractTreeUi.java   
private void removeChildren(@NotNull DefaultMutableTreeNode node) {
  EnumerationCopy copy = new EnumerationCopy(node.children());
  while (copy.hasMoreElements()) {
    disposeNode((DefaultMutableTreeNode)copy.nextElement());
  }
  node.removeAllChildren();
  myTreeModel.nodeStructureChanged(node);
}
项目:consulo    文件:AbstractTreeUi.java   
private void removeChildren(@Nonnull DefaultMutableTreeNode node) {
  EnumerationCopy copy = new EnumerationCopy(node.children());
  while (copy.hasMoreElements()) {
    disposeNode((DefaultMutableTreeNode)copy.nextElement());
  }
  node.removeAllChildren();
  nodeStructureChanged(node);
}