From 324e37f4b2977b530f272ed709756e00065ccdb1 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Fri, 06 Apr 2007 19:09:13 +0000
Subject: [PATCH] - There are 3 new classes for describing an instance of OpenDS: Installation which describes the filesystem, Status which can answer questions like 'is the server running' and Configuration which represents an instance of config.ldif. Part of the implementations of these classes were pulled from CurrentInstallStatus, Installer and Utils with some new methods to support upgrader needs. There is still some overlap in functionality that I don't like but my attempt at converting the exiting applications to use the new classes ran into problems so I leave that for a future exercise.
---
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/QuickSetup.java | 32 +++++++-------------------------
1 files changed, 7 insertions(+), 25 deletions(-)
diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/QuickSetup.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/QuickSetup.java
index 32807c0..0ad306d 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/QuickSetup.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/QuickSetup.java
@@ -425,31 +425,9 @@
}
/**
- * Launch the installation of Open DS. Depending on whether we are running a
- * web start or not it will use on Installer object or other.
- *
+ * Launch the QuickSetup application Open DS.
*/
- public void launchInstallation()
- {
- ProgressMessageFormatter formatter = getDialog().getFormatter();
-
- application.addProgressUpdateListener(this);
- new Thread(application).start();
- Thread t = new Thread(new Runnable()
- {
- public void run()
- {
- runDisplayUpdater();
- }
- });
- t.start();
- }
-
- /**
- * Launch the uninstallation of Open DS.
- *
- */
- public void launchUninstallation()
+ public void launch()
{
application.addProgressUpdateListener(this);
new Thread(application).start();
@@ -557,7 +535,11 @@
*/
public void displayError(String msg, String title)
{
- getDialog().displayError(msg, title);
+ if (Utils.isCli()) {
+ System.err.println(msg);
+ } else {
+ getDialog().displayError(msg, title);
+ }
}
/**
--
Gitblit v1.10.0