From d441f750a60beeafecb7795c59ca73927cbc8ea7 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 16 Oct 2009 00:27:26 +0000
Subject: [PATCH] Change the interface of ProgressDialog to be able to specify separately the frame of the dialog and the component that must be used as a reference to display the dialog.

---
 opends/src/guitools/org/opends/guitools/controlpanel/ui/LDAPEntryPanel.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ui/LDAPEntryPanel.java b/opends/src/guitools/org/opends/guitools/controlpanel/ui/LDAPEntryPanel.java
index 2b240e9..00ff0ca 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ui/LDAPEntryPanel.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/ui/LDAPEntryPanel.java
@@ -555,7 +555,8 @@
     try
     {
       ProgressDialog dlg = new ProgressDialog(
-          Utilities.getParentDialog(this),
+          Utilities.getFrame(this),
+          Utilities.getFrame(this),
           INFO_CTRL_PANEL_MODIFYING_ENTRY_CHANGES_TITLE.get(), getInfo());
       dlg.setModal(modal);
       Entry entry = displayedEntryPanel.getEntry();
@@ -617,8 +618,8 @@
       Message title = isLeaf ? INFO_CTRL_PANEL_DELETING_ENTRY_TITLE.get() :
         INFO_CTRL_PANEL_DELETING_SUBTREE_TITLE.get();
       ProgressDialog dlg = new ProgressDialog(
-          Utilities.getParentDialog(this),
-          title, getInfo());
+          Utilities.createFrame(),
+          Utilities.getParentDialog(this), title, getInfo());
       DeleteEntryTask newTask = new DeleteEntryTask(getInfo(), dlg,
           new TreePath[]{treePath}, controller);
       for (Task task : getInfo().getTasks())

--
Gitblit v1.10.0