From a8f5d8345278d27ddf5325d3977e460b86b6275f Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Tue, 27 Apr 2010 20:56:50 +0000
Subject: [PATCH] Fixing several issues with the Control Panel, the QuickSetup, Core server and Replication. Also improves unit, functional tests. More specifically this commit resolves the following open issues: 4385 - NPE when using ExtensibleMatch filter without a matching rule 4521 - dynamic lookup in attribut selection when selecting the sort order attribut while defining VLV index 4531 - Control Panel creates virtual static groups using groupOfURLs as objectclass 4533 - NullPointerException when configuring replication between 2 OpenDS 4539 - DSML Gateway - jaxb.properties Exception

---
 opends/src/guitools/org/opends/guitools/controlpanel/ControlPanelLauncher.java |   36 +++++-------------------------------
 1 files changed, 5 insertions(+), 31 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ControlPanelLauncher.java b/opends/src/guitools/org/opends/guitools/controlpanel/ControlPanelLauncher.java
index 33ba350..1b8bcf1 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ControlPanelLauncher.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/ControlPanelLauncher.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2008-2009 Sun Microsystems, Inc.
+ *      Copyright 2008-2010 Sun Microsystems, Inc.
  */
 
 package org.opends.guitools.controlpanel;
@@ -36,11 +36,12 @@
 import java.util.logging.Logger;
 
 import javax.swing.SwingUtilities;
-import javax.swing.UIManager;
 
+import org.opends.guitools.controlpanel.ui.ColorAndFontConstants;
 import org.opends.guitools.controlpanel.util.ControlPanelLog;
 import org.opends.messages.AdminToolMessages;
 import org.opends.messages.Message;
+import org.opends.quicksetup.ui.UIFactory;
 import org.opends.quicksetup.util.Utils;
 import org.opends.server.util.DynamicConstants;
 import org.opends.server.util.StaticUtils;
@@ -214,35 +215,8 @@
         AdminToolMessages.INFO_CONTROL_PANEL_TITLE.get(
         DynamicConstants.PRODUCT_NAME), Message.class);
     Utils.setMacOSXMenuBar(title);
-
-    if (SwingUtilities.isEventDispatchThread())
-    {
-      UIManager.setLookAndFeel(
-          UIManager.getSystemLookAndFeelClassName());
-    }
-    else
-    {
-      final Throwable[] ts = {null};
-      SwingUtilities.invokeAndWait(new Runnable()
-      {
-        public void run()
-        {
-          try
-          {
-            UIManager.setLookAndFeel(
-                UIManager.getSystemLookAndFeelClassName());
-          }
-          catch (Throwable t)
-          {
-            ts[0] = t;
-          }
-        }
-      });
-      if (ts[0] != null)
-      {
-        throw ts[0];
-      }
-    }
+    ColorAndFontConstants.initialize();
+    UIFactory.initialize();
   }
 }
 

--
Gitblit v1.10.0