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

jvergara
17.22.2008 f3ee77351f9ae60842dc99b1939beaecf3e3ca9e
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
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/JavaPropertiesPanel.java 2 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/TableViewEntryPanel.java 20 ●●●●● patch | view | raw | blame | history
opendj-sdk/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)
opendj-sdk/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