From 8ad17870ae644a4738a5fe38048e163334efbbce Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Thu, 17 May 2007 13:03:10 +0000
Subject: [PATCH] This commit cleans up the output for both the CLI and Web Start versions of the upgrader so that it conforms to Brian's proposal to limit messages to the progress text area and CLI output. There is some new plumbing that affects but should not change other applications.
---
opends/src/quicksetup/org/opends/quicksetup/util/PlainTextProgressMessageFormatter.java | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/util/PlainTextProgressMessageFormatter.java b/opends/src/quicksetup/org/opends/quicksetup/util/PlainTextProgressMessageFormatter.java
index 3fac5ae..cbf7e85 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/util/PlainTextProgressMessageFormatter.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/util/PlainTextProgressMessageFormatter.java
@@ -38,6 +38,7 @@
implements ProgressMessageFormatter
{
private String doneText;
+ private String errorText;
/**
* The line break in plain text.
@@ -167,6 +168,19 @@
}
/**
+ * Returns the plain text representation of the 'Error' text string.
+ * @return the plain text representation of the 'Error' text string.
+ */
+ public String getFormattedError()
+ {
+ if (errorText == null)
+ {
+ errorText = getMsg("progress-error");
+ }
+ return errorText;
+ }
+
+ /**
* Returns the plain text representation of the argument text to which we add
* points. For instance if we pass as argument 'Configuring Server' the
* return value will be 'Configuring Server .....'.
@@ -263,7 +277,7 @@
* have something of type:
* key=value
*
- * @see ResourceProvider.getMsg(String key)
+ * @see ResourceProvider#getMsg(String key)
* @param key the key in the properties file.
* @return the value associated to the key in the properties file.
* properties file.
--
Gitblit v1.10.0