From 72a49cdc969eed0d2a46c6ec37390a351e360015 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Thu, 28 Jun 2007 13:39:36 +0000
Subject: [PATCH] This commit address issue 1674 <https://opends.dev.java.net/issues/show_bug.cgi?id=1674> to make the webstart and offline installers cancelable.  The plumbing for cancelability is already in place since the upgrader makes use of it.  This commit for the most part implements the actions that the installers must perform when the operation is canceled.

---
 opends/src/quicksetup/org/opends/quicksetup/installer/InstallProgressStep.java |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/InstallProgressStep.java b/opends/src/quicksetup/org/opends/quicksetup/installer/InstallProgressStep.java
index e4771ed..6c76c83 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/InstallProgressStep.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/installer/InstallProgressStep.java
@@ -102,11 +102,27 @@
   ENABLING_WINDOWS_SERVICE,
 
   /**
+   * User is waiting for current task to finish
+   * so that the operation can be canceled.
+   */
+  WAITING_TO_CANCEL,
+
+  /**
+   * Canceling install.
+   */
+  CANCELING,
+
+  /**
    * Installation finished successfully.
    */
   FINISHED_SUCCESSFULLY,
 
   /**
+   * User canceled installation.
+   */
+  FINISHED_CANCELED,
+
+  /**
    * Installation finished with an error.
    */
   FINISHED_WITH_ERROR;
@@ -116,6 +132,7 @@
    */
   public boolean isLast() {
     return this == FINISHED_SUCCESSFULLY ||
+            this == FINISHED_CANCELED ||
     this == FINISHED_WITH_ERROR;
   }
 

--
Gitblit v1.10.0