From cb4fffb7bf1f9de28183fe58376f5762b1e45cf9 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 20 Apr 2007 15:09:47 +0000
Subject: [PATCH] Fix for issue 1494: web start installer provides the option to create non-existent install path.
---
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetup.java | 25 ++++++++++++-------------
1 files changed, 12 insertions(+), 13 deletions(-)
diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetup.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetup.java
index 1f198c9..4da9398 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetup.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/QuickSetup.java
@@ -278,7 +278,18 @@
if (throwable != null) {
UserDataException ude = (UserDataException) throwable;
- displayError(ude.getLocalizedMessage(), getMsg("error-title"));
+ if (ude instanceof UserDataConfirmationException)
+ {
+ if (displayConfirmation(ude.getLocalizedMessage(),
+ getMsg("confirmation-title")))
+ {
+ setCurrentStep(application.getNextWizardStep(cStep));
+ }
+ }
+ else
+ {
+ displayError(ude.getLocalizedMessage(), getMsg("error-title"));
+ }
} else {
setCurrentStep(application.getNextWizardStep(cStep));
}
@@ -448,18 +459,6 @@
* The following three methods are just commodity methods to get localized
* messages.
* @param key String key
- * @param args String[] args
- * @return String message
- */
- private String getMsg(String key, String[] args)
- {
- return getI18n().getMsg(key, args);
- }
-
- /**
- * The following three methods are just commodity methods to get localized
- * messages.
- * @param key String key
* @param t Throwable throwable
* @return String message
*/
--
Gitblit v1.10.0