From f68e7a69b0ccd407685901e1a0839bdc316a7373 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 17 Dec 2008 12:02:58 +0000
Subject: [PATCH] Extend GenericDialog so that its extending classes can use a customized message for the title.

---
 opends/src/guitools/org/opends/guitools/controlpanel/ui/MainActionsPane.java |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ui/MainActionsPane.java b/opends/src/guitools/org/opends/guitools/controlpanel/ui/MainActionsPane.java
index 9000aa9..6fb8ed0 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ui/MainActionsPane.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/ui/MainActionsPane.java
@@ -118,9 +118,7 @@
                 {
                   panel.setInfo(getInfo());
                 }
-                dlg = new GenericDialog(
-                    Utilities.getFrame(MainActionsPane.this),
-                    panel);
+                dlg = createDialog(panel);
 
                 dialogs.put(action, dlg);
                 Utilities.centerGoldenMean(dlg,
@@ -175,6 +173,18 @@
   }
 
   /**
+   * Creates the dialog to be displayed using the provided panel.
+   * @param panel the panel that will be contained in the dialog.
+   * @return the dialog to be displayed using the provided panel.
+   */
+  protected GenericDialog createDialog(StatusGenericPanel panel)
+  {
+    return new GenericDialog(
+        Utilities.getFrame(MainActionsPane.this),
+        panel);
+  }
+
+  /**
    * Creates the categories contained by this panel.
    * @return the categories contained by this panel.
    */

--
Gitblit v1.10.0