From 9d009bf1c85799b42ccb8c0950c157a6c5f0ebac 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.

---
 opends/src/quicksetup/org/opends/quicksetup/util/ZipExtractor.java |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/util/ZipExtractor.java b/opends/src/quicksetup/org/opends/quicksetup/util/ZipExtractor.java
index cb1f029..8b61608 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/util/ZipExtractor.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/util/ZipExtractor.java
@@ -180,8 +180,10 @@
         new HashMap<String, ArrayList<String>>();
 
     try {
+      application.checkAbort();
       ZipEntry entry = zipIn.getNextEntry();
       while (entry != null) {
+        application.checkAbort();
         int ratioBeforeCompleted = minRatio
                 + ((nEntries - 1) * (maxRatio - minRatio) / numberZipEntries);
         int ratioWhenCompleted =

--
Gitblit v1.10.0