From efde227b9d0180122362133a750c6b322601c883 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Thu, 19 Jul 2007 20:28:20 +0000
Subject: [PATCH] This initial implementation lays most of the groundwork necessary for signaling information and actions to the user during upgrade and reversion. However the only public effect this code has on the current upgrade tool is an informational dialog dialog if an upgrade is attempted from a build prior to one of the issues (2049, 1582, 890).
---
opends/src/quicksetup/org/opends/quicksetup/ui/GuiUserInteraction.java | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/ui/GuiUserInteraction.java b/opends/src/quicksetup/org/opends/quicksetup/ui/GuiUserInteraction.java
index 23aeaad..431f5ff 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/ui/GuiUserInteraction.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/ui/GuiUserInteraction.java
@@ -38,6 +38,7 @@
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
+import java.util.List;
/**
* This class supports user interactions for a graphical application.
@@ -108,6 +109,7 @@
sb.append(Utils.breakHtmlString(summary, MAX_CHARS_PER_LINE));
sb.append(Constants.HTML_BOLD_CLOSE);
sb.append(Constants.HTML_LINE_BREAK);
+ sb.append(Constants.HTML_LINE_BREAK);
sb.append(Utils.breakHtmlString(details, MAX_CHARS_PER_LINE));
JEditorPane ep = UIFactory.makeHtmlPane(
sb.toString(),
@@ -124,6 +126,23 @@
}
/**
+ * {@inheritDoc}
+ */
+ public String createUnorderedList(List list) {
+ StringBuilder sb = new StringBuilder();
+ if (list != null) {
+ sb.append(Constants.HTML_UNORDERED_LIST_OPEN);
+ for (Object o : list) {
+ sb.append(Constants.HTML_LIST_ITEM_OPEN);
+ sb.append(o.toString());
+ sb.append(Constants.HTML_LIST_ITEM_CLOSE);
+ }
+ sb.append(Constants.HTML_UNORDERED_LIST_CLOSE);
+ }
+ return sb.toString();
+ }
+
+ /**
* JOptionPane that controls the number of characters that are allowed
* to appear on a single line in the input area of the dialog.
*/
--
Gitblit v1.10.0