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

jvergara
11.33.2009 3d115cb858bec3c3444f1c53d222ccff69b396b3
Fix for issue 4336 (Control Panel: Structural changes won't refresh / no refresh button/menuentry)

Update the contents of the selected entry when the user clicks on Refresh.
2 files modified
23 ■■■■■ changed files
opends/src/guitools/org/opends/guitools/controlpanel/ui/BrowseEntriesPanel.java 19 ●●●●● patch | view | raw | blame | history
opends/src/guitools/org/opends/guitools/controlpanel/ui/LDAPEntryPanel.java 4 ●●●● patch | view | raw | blame | history
opends/src/guitools/org/opends/guitools/controlpanel/ui/BrowseEntriesPanel.java
@@ -1582,6 +1582,25 @@
  private void refreshClicked()
  {
    // Refresh the contents of the selected entry.
    TreePath[] paths = treePane.getTree().getSelectionPaths();
    if (paths != null && paths.length == 1)
    {
      if (entryPane.mustCheckUnsavedChanges())
      {
        switch (entryPane.checkUnsavedChanges())
        {
        case DO_NOT_SAVE:
          break;
        case SAVE:
          break;
        case CANCEL:
          // Do nothing.
          return;
        }
      }
      updateRightPane(paths);
    }
    entryPane.getController().startRefresh(null);
  }
}
opends/src/guitools/org/opends/guitools/controlpanel/ui/LDAPEntryPanel.java
@@ -722,9 +722,9 @@
  /**
   * Tells whether the user chose to save the changes in the panel, to not save
   * them or simply cancelled the selection change in the tree.
   * them or simply canceled the selection change in the tree.
   * @return the value telling whether the user chose to save the changes in the
   * panel, to not save them or simply cancelled the selection in the tree.
   * panel, to not save them or simply canceled the selection in the tree.
   */
  public UnsavedChangesDialog.Result checkUnsavedChanges()
  {