manager = null;
}
+ /**
+ * Fast dispose is used to wipe the whole tree.
+ *
+ * ContextToNodeMap is cleared with one command, so we do not need to remove nodes one by one from the map.
+ */
+ public void fastDispose() {
+ if (DEBUG) System.out.println("dispose " + this);
+ parent = null;
+ for (TreeNode n : children) {
+ n.fastDispose();
+ }
+ clearCache();
+ children.clear();
+ context = null;
+ explorerContext = null;
+ manager.dispose();
+ manager = null;
+ }
+
private void clearCache() {
if (explorerContext != null) {
GECache2 cache = explorerContext.cache;