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

jvergara
17.22.2008 982412a1145da5fbac1885c6616cb7587ee08ea3
Fix for issue 3590 (Changes in java arguments only apply when the edited cell loses focus.)

Call the method stopCellEditing when the user clicks on OK in the Java properties table or on 'Save' on the table view of the LDAP entry browser editor.
2 files modified
22 ■■■■■ changed files
opends/src/guitools/org/opends/guitools/controlpanel/ui/JavaPropertiesPanel.java 2 ●●●●● patch | view | raw | blame | history
opends/src/guitools/org/opends/guitools/controlpanel/ui/TableViewEntryPanel.java 20 ●●●●● patch | view | raw | blame | history
opends/src/guitools/org/opends/guitools/controlpanel/ui/JavaPropertiesPanel.java
@@ -569,6 +569,8 @@
   */
  public void okClicked()
  {
    editor.stopCellEditing();
    ArrayList<Message> errors = new ArrayList<Message>();
    String f = javaHome.getText().trim();
    if (f.length() > 0)
opends/src/guitools/org/opends/guitools/controlpanel/ui/TableViewEntryPanel.java
@@ -226,6 +226,26 @@
   */
  public Entry getEntry() throws OpenDsException
  {
    if (SwingUtilities.isEventDispatchThread())
    {
      editor.stopCellEditing();
    }
    else
    {
      try
      {
        SwingUtilities.invokeAndWait(new Runnable()
        {
          public void run()
          {
            editor.stopCellEditing();
          }
        });
      }
      catch (Throwable t)
      {
      }
    }
    Entry entry = null;
    LDIFImportConfig ldifImportConfig = null;
    try