From 7ae21709bb6dbdc092052acb5098bfa5cb316d9e Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Thu, 29 Mar 2007 15:09:14 +0000
Subject: [PATCH] These refactorings are essential in anticipation of a new quicksetup application for the upgrader feature (issue 598). These changes were reviewed by Josu.
---
opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallProgressStep.java | 35 +++++++++++++++++++++++++++++------
1 files changed, 29 insertions(+), 6 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallProgressStep.java b/opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallProgressStep.java
index 3fcd5a1..889286c 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallProgressStep.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallProgressStep.java
@@ -27,47 +27,70 @@
package org.opends.quicksetup.uninstaller;
+import org.opends.quicksetup.ProgressStep;
+
/**
- * This enumeration describes the different uninstallation steps in which we can
- * be.
- *
+ * Enumeration of steps for an uninstall process.
*/
-public enum UninstallProgressStep
-{
+public enum UninstallProgressStep implements ProgressStep {
+
/**
* Uninstall not started.
*/
NOT_STARTED,
+
/**
* Stopping server.
*/
STOPPING_SERVER,
+
/**
* Disabling Windows Service.
*/
DISABLING_WINDOWS_SERVICE,
+
/**
* Removing External Database files.
*/
DELETING_EXTERNAL_DATABASE_FILES,
+
/**
* Removing External Log files.
*/
DELETING_EXTERNAL_LOG_FILES,
+
/**
* Removing external references.
*/
REMOVING_EXTERNAL_REFERENCES,
+
/**
* Removing installation files.
*/
DELETING_INSTALLATION_FILES,
+
/**
* Installation finished successfully.
*/
FINISHED_SUCCESSFULLY,
+
/**
* Installation finished with an error.
*/
- FINISHED_WITH_ERROR
+ FINISHED_WITH_ERROR;
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isLast() {
+ return this == FINISHED_SUCCESSFULLY ||
+ this == FINISHED_WITH_ERROR;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isError() {
+ return this.equals(FINISHED_WITH_ERROR);
+ }
}
--
Gitblit v1.10.0