From 81d36161ce5367fa7aa9a5d99dc8b80eacfa7cdf Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Fri, 24 Jan 2014 14:43:46 +0000
Subject: [PATCH] Checkpoint commit for OPENDJ-1288 :    Migrate I18n and logging support to i18n framework and SLF4J

---
 opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/NewOrganizationPanel.java |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/NewOrganizationPanel.java b/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/NewOrganizationPanel.java
index 67e69c1..61a1727 100644
--- a/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/NewOrganizationPanel.java
+++ b/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/NewOrganizationPanel.java
@@ -22,6 +22,7 @@
  *
  *
  *      Copyright 2008 Sun Microsystems, Inc.
+ *      Portions Copyright 2014 ForgeRock AS
  */
 
 /*
@@ -48,6 +49,7 @@
  *
  *
  *      Copyright 2008 Sun Microsystems, Inc.
+ *      Portions Copyright 2014 ForgeRock AS
  */
 
 package org.opends.guitools.controlpanel.ui;
@@ -65,7 +67,7 @@
 import org.opends.guitools.controlpanel.browser.BrowserController;
 import org.opends.guitools.controlpanel.ui.nodes.BasicNode;
 import org.opends.guitools.controlpanel.util.Utilities;
-import org.opends.messages.Message;
+import org.forgerock.i18n.LocalizableMessage;
 
 /**
  * The panel used to create a new organization.
@@ -139,7 +141,7 @@
   /**
    * {@inheritDoc}
    */
-  public Message getTitle()
+  public LocalizableMessage getTitle()
   {
     return INFO_CTRL_NEW_ORGANIZATION_PANEL_TITLE.get();
   }
@@ -156,7 +158,7 @@
    * Returns the title of the progress dialog.
    * @return the title of the progress dialog.
    */
-  protected Message getProgressDialogTitle()
+  protected LocalizableMessage getProgressDialogTitle()
   {
     return INFO_CTRL_NEW_ORGANIZATION_PANEL_TITLE.get();
   }
@@ -164,7 +166,7 @@
   /**
    * {@inheritDoc}
    */
-  protected void checkSyntax(ArrayList<Message> errors)
+  protected void checkSyntax(ArrayList<LocalizableMessage> errors)
   {
     for (JLabel label : labels)
     {
@@ -172,7 +174,7 @@
     }
 
     JTextField[] requiredFields = {name};
-    Message[] msgs = {ERR_CTRL_PANEL_NAME_OF_ORGANIZATION_REQUIRED.get()};
+    LocalizableMessage[] msgs = {ERR_CTRL_PANEL_NAME_OF_ORGANIZATION_REQUIRED.get()};
     for (int i=0; i<requiredFields.length; i++)
     {
       String v = requiredFields[i].getText().trim();
@@ -190,12 +192,12 @@
   private void createLayout()
   {
     GridBagConstraints gbc = new GridBagConstraints();
-    Message[] ls = {
+    LocalizableMessage[] ls = {
         INFO_CTRL_PANEL_NEW_ORGANIZATION_NAME_LABEL.get(),
         INFO_CTRL_PANEL_NEW_ORGANIZATION_DESCRIPTION_LABEL.get(),
         INFO_CTRL_PANEL_NEW_ORGANIZATION_ENTRY_DN_LABEL.get()};
     int i = 0;
-    for (Message l : ls)
+    for (LocalizableMessage l : ls)
     {
       labels[i].setText(l.toString());
       i++;

--
Gitblit v1.10.0