From a962f63052985ec85f0965a4b5ff2024f6dc0a51 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 24 Nov 2009 14:52:54 +0000
Subject: [PATCH] Cleanup the completed tasks and dispose the progress dialogs once they are closed, since these increases the used memory and today there is no UI to redisplay closed progress dialogs.
---
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/ProgressDialog.java | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/ProgressDialog.java b/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/ProgressDialog.java
index bdb8bd7..cfc7c85 100644
--- a/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/ProgressDialog.java
+++ b/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/ProgressDialog.java
@@ -262,6 +262,14 @@
}
/**
+ * {@inheritDoc}
+ */
+ public boolean isDisposeOnClose()
+ {
+ return true;
+ }
+
+ /**
* Appends a line to the logs (Details are) section of the panel. The text
* will be preceded by a new line (is similar to println()).
* @param msg the HTML formatted text to be appended.
--
Gitblit v1.10.0