From 6d120a9a3f9d4a23ca83c5f715e7923e1d4103d7 Mon Sep 17 00:00:00 2001
From: jcduff <jcduff@localhost>
Date: Mon, 22 Dec 2008 15:32:17 +0000
Subject: [PATCH] Implement support for click-thru license approval in quicksetup. A new panel will show up to present the license if the license file Legal/license_to_accept.txt exists in the layout. Otherwise, quicksetup will have the same behavior as before.

---
 opends/src/quicksetup/org/opends/quicksetup/Step.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/Step.java b/opends/src/quicksetup/org/opends/quicksetup/Step.java
index 4f6208e..5767d54 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/Step.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/Step.java
@@ -44,6 +44,11 @@
   WELCOME(INFO_WELCOME_STEP.get()),
 
   /**
+   * License approval step for the installation.
+   */
+  LICENSE(INFO_LICENSE_STEP.get()),
+
+  /**
    * Confirmation panel for the uninstallation.
    */
   CONFIRM_UNINSTALL(INFO_CONFIRM_UNINSTALL_STEP.get()),
@@ -124,4 +129,11 @@
     return this == FINISHED;
   }
 
+  /**
+   * {@inheritDoc}
+   */
+  public boolean isLicenseStep() {
+    return this == LICENSE;
+  }
+
 }

--
Gitblit v1.10.0