From 0d7f526c8bd275c9874877a7d9e54fa78ba593ed Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 17 Oct 2007 13:06:57 +0000
Subject: [PATCH] Add some code in order the code of the setup to be able to be more reactive to the Cancel operation.  Now the user does not have to wait until the end of the download to stop the setup process nor to the end of the replication initialization.

---
 opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetup.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetup.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetup.java
index 6557439..eb1e1bc 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetup.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetup.java
@@ -695,8 +695,9 @@
     {
       progressDetails.append(additionalDetails);
     }
-    // Note: progressDetails might have lot of messages and since the fix for
-    // issue 2142 was committed there is a limitation in this area.  So here
+    // Note: progressDetails might have a certain number of characters that
+    // break Message Formatter (for instance percentages).  When fix for
+    // issue 2142 was committed it broke this code.  So here
     // we use Message.raw instead of calling directly progressDetails.toMessage
     return new ProgressDescriptor(status, ratio, newProgressLabel,
         Message.raw(progressDetails.toString()));

--
Gitblit v1.10.0