mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
21.17.2009 33653ad9e2995ca4d5fedf96d9a085ed840ba4d9
Partial fix for issue 4412 (creating bogus entry from ldif in control panel, the error warning winodw shows hidden behind)
The following modifications are targetted to force the progress dialog to appear in front when an entry is created.
1 files modified
15 ■■■■ changed files
opends/src/guitools/org/opends/guitools/controlpanel/ui/AbstractNewEntryPanel.java 15 ●●●● patch | view | raw | blame | history
opends/src/guitools/org/opends/guitools/controlpanel/ui/AbstractNewEntryPanel.java
@@ -33,6 +33,8 @@
import java.io.StringReader;
import java.util.ArrayList;
import javax.swing.SwingUtilities;
import org.opends.guitools.controlpanel.browser.BrowserController;
import org.opends.guitools.controlpanel.event.ConfigurationChangeEvent;
import org.opends.guitools.controlpanel.task.NewEntryTask;
@@ -47,8 +49,8 @@
import org.opends.server.util.LDIFReader;
/**
 * Abstract class used to refactor some code among the different panels that are
 * used to create a new entry.
 * Abstract class used to re-factor some code among the different panels that
 * are used to create a new entry.
 *
 */
public abstract class AbstractNewEntryPanel extends StatusGenericPanel
@@ -180,7 +182,7 @@
    }
    if (errors.size() == 0)
    {
      ProgressDialog dlg = new ProgressDialog(
      final ProgressDialog dlg = new ProgressDialog(
          Utilities.createFrame(), Utilities.getParentDialog(this),
          getProgressDialogTitle(), getInfo());
      try
@@ -204,6 +206,13 @@
              dlg);
          dlg.setVisible(true);
          Utilities.getParentDialog(this).setVisible(false);
          SwingUtilities.invokeLater(new Runnable()
          {
            public void run()
            {
              dlg.toFront();
            }
          });
        }
      }
      catch (Throwable t)