From 4df4b439048aa629e87945af2e4dfac9747e0861 Mon Sep 17 00:00:00 2001
From: Violette Roche-Montane <violette.roche-montane@forgerock.com>
Date: Mon, 05 May 2014 15:56:21 +0000
Subject: [PATCH] OPENDJ-1303 "opendj-cli" - Removed && replaced StaticUtils.wrapText by com.forgerock.opendj.cli.Utils.wrapText;

---
 opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java b/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java
index a292117..50204a8 100644
--- a/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java
+++ b/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java
@@ -134,6 +134,7 @@
 import org.opends.server.util.StaticUtils;
 
 import static org.opends.server.types.CommonSchemaElements.*;
+import static com.forgerock.opendj.cli.Utils.wrapText;
 
 /**
  * A static class that provides miscellaneous functions.
@@ -268,7 +269,7 @@
     }
     String msg = getStringFromCollection(stringErrors, "<br>");
     String plainText = msg.replaceAll("<br>", ServerConstants.EOL);
-    String wrappedText = StaticUtils.wrapText(plainText, 70);
+    String wrappedText = wrapText(plainText, 70);
     wrappedText = wrappedText.replaceAll(ServerConstants.EOL, "<br>");
     JOptionPane.showMessageDialog(
         parentComponent, "<html>"+wrappedText,
@@ -291,7 +292,7 @@
       LocalizableMessage title, LocalizableMessage msg)
   {
     String plainText = msg.toString().replaceAll("<br>", ServerConstants.EOL);
-    String wrappedText = StaticUtils.wrapText(plainText, 70);
+    String wrappedText = wrapText(plainText, 70);
     wrappedText = wrappedText.replaceAll(ServerConstants.EOL, "<br>");
     return JOptionPane.YES_OPTION == JOptionPane.showOptionDialog(
         parentComponent, "<html>"+wrappedText,
@@ -314,7 +315,7 @@
       LocalizableMessage title, LocalizableMessage msg)
   {
     String plainText = msg.toString().replaceAll("<br>", ServerConstants.EOL);
-    String wrappedText = StaticUtils.wrapText(plainText, 70);
+    String wrappedText = wrapText(plainText, 70);
     wrappedText = wrappedText.replaceAll(ServerConstants.EOL, "<br>");
     JOptionPane.showMessageDialog(
         parentComponent, "<html>"+wrappedText,
@@ -1025,7 +1026,7 @@
   public static void updatePreferredSize(JEditorPane pane, int nCols,
       String plainText, Font font, boolean applyBackground)
   {
-    String wrappedText = StaticUtils.wrapText(plainText, nCols);
+    String wrappedText = wrapText(plainText, nCols);
     wrappedText = wrappedText.replaceAll(ServerConstants.EOL, "<br>");
     if (applyBackground)
     {

--
Gitblit v1.10.0