chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1428205 - /chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LoginDialog.java
Date Thu, 03 Jan 2013 08:08:19 GMT
Author: fmui
Date: Thu Jan  3 08:08:19 2013
New Revision: 1428205

URL: http://svn.apache.org/viewvc?rev=1428205&view=rev
Log:
CMIS-616: Workbench: drop-down event handler fix

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LoginDialog.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LoginDialog.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LoginDialog.java?rev=1428205&r1=1428204&r2=1428205&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LoginDialog.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/LoginDialog.java
Thu Jan  3 08:08:19 2013
@@ -282,10 +282,12 @@ public class LoginDialog extends JDialog
 
         configs.addItemListener(new ItemListener() {
             public void itemStateChanged(ItemEvent e) {
-                FileEntry fe = (FileEntry) e.getItem();
+                if (e.getStateChange() == ItemEvent.SELECTED) {
+                    FileEntry fe = (FileEntry) e.getItem();
 
-                sessionParameterTextArea.setText(ClientHelper.readFileAndRemoveHeader(fe.getFile()));
-                sessionParameterTextArea.setCaretPosition(0);
+                    sessionParameterTextArea.setText(ClientHelper.readFileAndRemoveHeader(fe.getFile()));
+                    sessionParameterTextArea.setCaretPosition(0);
+                }
             }
         });
 



Mime
View raw message