From ba0c82bc1cb8926ca329a4eae78263ee8bbe1094 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Thu, 12 Jul 2007 15:47:29 +0000
Subject: [PATCH] moved UI specific utilties to UI specific utility class

---
 opends/src/statuspanel/org/opends/statuspanel/StatusPanelController.java |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/opends/src/statuspanel/org/opends/statuspanel/StatusPanelController.java b/opends/src/statuspanel/org/opends/statuspanel/StatusPanelController.java
index 1541f0b..f725f28 100644
--- a/opends/src/statuspanel/org/opends/statuspanel/StatusPanelController.java
+++ b/opends/src/statuspanel/org/opends/statuspanel/StatusPanelController.java
@@ -41,6 +41,7 @@
 
 import org.opends.quicksetup.Installation;
 import org.opends.quicksetup.ui.UIFactory;
+import org.opends.quicksetup.ui.Utilities;
 import org.opends.quicksetup.util.BackgroundTask;
 import org.opends.quicksetup.util.HtmlProgressMessageFormatter;
 import org.opends.quicksetup.util.Utils;
@@ -221,7 +222,8 @@
       if (!getProgressDialog().isVisible())
       {
         getProgressDialog().pack();
-        Utils.centerOnComponent(getProgressDialog(), getStatusPanelDialog());
+        Utilities.centerOnComponent(getProgressDialog(),
+                getStatusPanelDialog());
         getProgressDialog().setVisible(true);
       }
 
@@ -301,7 +303,8 @@
         if (!getProgressDialog().isVisible())
         {
           getProgressDialog().pack();
-          Utils.centerOnComponent(getProgressDialog(), getStatusPanelDialog());
+          Utilities.centerOnComponent(getProgressDialog(),
+                  getStatusPanelDialog());
           getProgressDialog().setVisible(true);
         }
 
@@ -382,7 +385,8 @@
         if (!getProgressDialog().isVisible())
         {
           getProgressDialog().pack();
-          Utils.centerOnComponent(getProgressDialog(), getStatusPanelDialog());
+          Utilities.centerOnComponent(getProgressDialog(),
+                  getStatusPanelDialog());
           getProgressDialog().setVisible(true);
         }
 
@@ -437,7 +441,7 @@
   public void authenticateClicked()
   {
     getLoginDialog().pack();
-    Utils.centerOnComponent(getLoginDialog(), getStatusPanelDialog());
+    Utilities.centerOnComponent(getLoginDialog(), getStatusPanelDialog());
     getLoginDialog().setVisible(true);
     if (!getLoginDialog().isCancelled())
     {
@@ -1134,7 +1138,7 @@
    */
   private boolean confirmStop()
   {
-    return Utils.displayConfirmation(getStatusPanelDialog(),
+    return Utilities.displayConfirmation(getStatusPanelDialog(),
         getMsg("confirm-stop-message"), getMsg("confirm-stop-title"));
   }
 
@@ -1146,7 +1150,7 @@
    */
   private boolean confirmRestart()
   {
-    return Utils.displayConfirmation(getStatusPanelDialog(),
+    return Utilities.displayConfirmation(getStatusPanelDialog(),
         getMsg("confirm-restart-message"), getMsg("confirm-restart-title"));
   }
 

--
Gitblit v1.10.0