From 7d2698d372148b72f317bd9ff4d16c34e522c96d 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.
---
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/ButtonsPanel.java | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/ButtonsPanel.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/ButtonsPanel.java
index 36935b0..5cec29a 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/ButtonsPanel.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/ButtonsPanel.java
@@ -32,6 +32,7 @@
import org.opends.quicksetup.ButtonName;
import org.opends.quicksetup.WizardStep;
+import org.opends.quicksetup.LicenseFile;
import org.opends.quicksetup.event.ButtonActionListener;
import org.opends.quicksetup.event.ButtonEvent;
@@ -121,6 +122,11 @@
// is only enabled once progress has finished or cancelled.
closeButton.setVisible(step.isProgressStep() || step.isFinishedStep());
closeButton.setEnabled(application.getCurrentProgressStep().isLast());
+
+ // The next button is always enabled in all steps except the license step.
+ // In that step, the next button will be enabled only if the user has
+ // approved the license
+ nextButton.setEnabled(!step.isLicenseStep() || LicenseFile.getApproval());
}
/**
--
Gitblit v1.10.0