From a797116ed53365028c0dd62ba45640c91be58ffb Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Tue, 05 Jun 2007 21:02:26 +0000
Subject: [PATCH] This commit introduces several bits of quicksetup plumbing necessary to support the upgrader's interaction in asking the user whether they would like to cancel an upgrade if there are problems found:

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

diff --git a/opends/src/quicksetup/org/opends/quicksetup/Application.java b/opends/src/quicksetup/org/opends/quicksetup/Application.java
index 50a9701..ced1372 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/Application.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/Application.java
@@ -553,6 +553,21 @@
   abstract public void cancel();
 
   /**
+   * Makes available a <code>UserInteraction</code> class that can be used
+   * by the application to interact with the user.  If the user has requested
+   * a noninteractive session this method returns null.
+   * @return UserInteraction object
+   */
+  protected UserInteraction userInteraction() {
+    // Note:  overridden in GuiApplication
+    UserInteraction ui = null;
+    if (!getUserData().isNoninteractive()) {
+      ui = new CliUserInteraction();
+    }
+    return ui;
+  }
+
+  /**
    * This class is used to notify the ProgressUpdateListeners of events
    * that are written to the standard error.  It is used in WebStartInstaller
    * and in OfflineInstaller.  These classes just create a ErrorPrintStream and

--
Gitblit v1.10.0