From 04882182c8357c9d5ff615b0ff8b1aa5ee4d2166 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 11 Nov 2009 14:07:24 +0000
Subject: [PATCH] Fix for issue 4355 (Control Panel: Collapsing a branch while loading aborts loading and caches the incomplete info) Mark the node that is being collapsed (if not completely loaded) to be refreshed on next expand.

---
 opends/src/guitools/org/opends/guitools/controlpanel/browser/NodeSearcherQueue.java |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/browser/NodeSearcherQueue.java b/opends/src/guitools/org/opends/guitools/controlpanel/browser/NodeSearcherQueue.java
index 4e36656..d460d12 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/browser/NodeSearcherQueue.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/browser/NodeSearcherQueue.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2008 Sun Microsystems, Inc.
+ *      Copyright 2008-2009 Sun Microsystems, Inc.
  */
 
 package org.opends.guitools.controlpanel.browser;
@@ -127,6 +127,18 @@
     notify();
   }
 
+  /**
+   * Tells whether this node is in the working list.
+   * @param node the node.
+   * @return <CODE>true</CODE> if the provided node is being refreshed and
+   * <CODE>false</CODE> otherwise.
+   */
+  public synchronized boolean isWorking(BasicNode node)
+  {
+    boolean isWorking = workingList.get(node) != null;
+    return isWorking;
+  }
+
 
   /**
    * Cancel all the object from this queue.

--
Gitblit v1.10.0