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/installer/InstallProgressStep.java | 36 +++++++++++++++++++++++++++++++-----
1 files changed, 31 insertions(+), 5 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/InstallProgressStep.java b/opends/src/quicksetup/org/opends/quicksetup/installer/InstallProgressStep.java
index df25583..e9637d0 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/InstallProgressStep.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/installer/InstallProgressStep.java
@@ -27,56 +27,82 @@
package org.opends.quicksetup.installer;
+import org.opends.quicksetup.ProgressStep;
+
/**
- * This enumeration describes the different installation steps in which we can
- * be.
+ * Enumeration of installation steps.
*/
-public enum InstallProgressStep
-{
+public enum InstallProgressStep implements ProgressStep {
+
/**
* Install not started.
*/
NOT_STARTED,
+
/**
* Downloading the remote jar files (this step is specific to the Web Start
* installation).
*/
DOWNLOADING,
+
/**
* Extracting the zip file (this step is specific to the Web Start
* installation).
*/
EXTRACTING,
+
/**
* Configuring server.
*/
CONFIGURING_SERVER,
+
/**
* Creating base entry for the suffix.
*/
CREATING_BASE_ENTRY,
+
/**
* Importing the contents of an LDIF file into the suffix.
*/
IMPORTING_LDIF,
+
/**
* Importing generated data into the suffix.
*/
IMPORTING_AUTOMATICALLY_GENERATED,
+
/**
* Starting Open DS server.
*/
STARTING_SERVER,
+
/**
* Enabling Windows service.
*/
ENABLING_WINDOWS_SERVICE,
+
/**
* 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