From 84e3c2e819f9921255bdc11041fdb45d61557f55 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 26 Mar 2008 12:00:42 +0000
Subject: [PATCH] Fix for issue 3064 (The setup command should check the Java version)

---
 opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/GuiUserInteraction.java |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/GuiUserInteraction.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/GuiUserInteraction.java
index 117baab..3a3f56e 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/GuiUserInteraction.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/GuiUserInteraction.java
@@ -48,8 +48,6 @@
  */
 public class GuiUserInteraction implements UserInteraction {
 
-  static private final int MAX_CHARS_PER_LINE = 100;
-
   private Component parent = null;
 
   /**
@@ -99,9 +97,11 @@
     }
     JOptionPane op;
     if (fineDetails != null) {
-      op = new DetailsOptionPane(MAX_CHARS_PER_LINE, fineDetails);
+      op = new DetailsOptionPane(Constants.MAX_CHARS_PER_LINE_IN_DIALOG,
+          fineDetails);
     } else {
-      op = new MaxCharactersPerLineOptionPane(MAX_CHARS_PER_LINE);
+      op = new MaxCharactersPerLineOptionPane(
+          Constants.MAX_CHARS_PER_LINE_IN_DIALOG);
     }
 
     // Create the main message using HTML formatting.  The max
@@ -110,12 +110,14 @@
     // have to format this ourselves.
     MessageBuilder sb = new MessageBuilder();
     sb.append(Constants.HTML_BOLD_OPEN);
-    sb.append(Utils.breakHtmlString(summary, MAX_CHARS_PER_LINE));
+    sb.append(Utils.breakHtmlString(summary,
+        Constants.MAX_CHARS_PER_LINE_IN_DIALOG));
     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));
+    sb.append(Utils.breakHtmlString(details,
+        Constants.MAX_CHARS_PER_LINE_IN_DIALOG));
     JEditorPane ep = UIFactory.makeHtmlPane(
             sb.toMessage(),
             UIFactory.INSTRUCTIONS_FONT);

--
Gitblit v1.10.0