From aa09acea1d63383816178c2d4cd9637a8cce9721 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 04 Dec 2009 10:20:42 +0000
Subject: [PATCH] Refactor some constants.

---
 opends/src/quicksetup/org/opends/quicksetup/util/HtmlProgressMessageFormatter.java |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/util/HtmlProgressMessageFormatter.java b/opends/src/quicksetup/org/opends/quicksetup/util/HtmlProgressMessageFormatter.java
index bd2cf1a..bd94908 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/util/HtmlProgressMessageFormatter.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/util/HtmlProgressMessageFormatter.java
@@ -72,6 +72,13 @@
    private static final Message LINE_BREAK=
      Message.raw("&#10;"+Constants.HTML_LINE_BREAK);
 
+   private static final Message TAB = new MessageBuilder(SPACE)
+   .append(SPACE)
+   .append(SPACE)
+   .append(SPACE)
+   .append(SPACE)
+   .toMessage();
+
   /**
    * Returns the HTML representation of the text without providing any style.
    * @param text the source text from which we want to get the HTML
@@ -378,12 +385,7 @@
    */
   public Message getTab()
   {
-    return new MessageBuilder(SPACE)
-            .append(SPACE)
-            .append(SPACE)
-            .append(SPACE)
-            .append(SPACE)
-            .toMessage();
+    return TAB;
   }
 
   /**

--
Gitblit v1.10.0