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

jvergara
30.54.2009 42f2e1a845b40d776243cbf5d9e7a3b6d5255ffc
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/StatusGenericPanel.java
@@ -62,7 +62,6 @@
import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JDialog;
import javax.swing.JEditorPane;
import javax.swing.JLabel;
import javax.swing.JMenuBar;
@@ -412,10 +411,14 @@
   */
  protected void setEnabledOK(boolean enable)
  {
    Window parent = Utilities.getParentDialog(this);
    if ((parent != null) && (parent instanceof GenericDialog))
    Window w = Utilities.getParentDialog(this);
    if (w instanceof GenericDialog)
    {
      ((GenericDialog)parent).setEnabledOK(enable);
      ((GenericDialog)w).setEnabledOK(enable);
    }
    else if (w instanceof GenericFrame)
    {
      ((GenericFrame)w).setEnabledOK(enable);
    }
    enableOK = enable;
  }
@@ -426,10 +429,14 @@
   */
  protected void setEnabledCancel(boolean enable)
  {
    JDialog parent = (JDialog)Utilities.getParentDialog(this);
    if ((parent != null) && (parent instanceof GenericDialog))
    Window w = Utilities.getParentDialog(this);
    if (w instanceof GenericDialog)
    {
      ((GenericDialog)parent).setEnabledCancel(enable);
      ((GenericDialog)w).setEnabledCancel(enable);
    }
    else if (w instanceof GenericFrame)
    {
      ((GenericFrame)w).setEnabledCancel(enable);
    }
    enableCancel = enable;
  }