directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r691618 - /directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/NetworkParameterPage.java
Date Wed, 03 Sep 2008 13:59:48 GMT
Author: seelmann
Date: Wed Sep  3 06:59:48 2008
New Revision: 691618

URL: http://svn.apache.org/viewvc?rev=691618&view=rev
Log:
Fix for DIRSTUDIO-386 (Can't change 5-digit port number by typing)

Modified:
    directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/NetworkParameterPage.java

Modified: directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/NetworkParameterPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/NetworkParameterPage.java?rev=691618&r1=691617&r2=691618&view=diff
==============================================================================
--- directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/NetworkParameterPage.java
(original)
+++ directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/NetworkParameterPage.java
Wed Sep  3 06:59:48 2008
@@ -185,6 +185,7 @@
         BaseWidgetUtils.createLabel( groupComposite, "Port:", 1 );
         String[] portHistory = HistoryUtils.load( ConnectionUIConstants.DIALOGSETTING_KEY_PORT_HISTORY
);
         portCombo = BaseWidgetUtils.createCombo( groupComposite, portHistory, -1, 2 );
+        portCombo.setTextLimit( 5 );
 
         String[] encMethods = new String[]
             { "No encryption", "Use SSL encryption (ldaps://)", "Use StartTLS extension"
};
@@ -287,10 +288,6 @@
                 {
                     event.doit = false;
                 }
-                if ( portCombo.getText().length() > 4 && event.text.length() >
0 )
-                {
-                    event.doit = false;
-                }
             }
         } );
         portCombo.addModifyListener( new ModifyListener()



Mime
View raw message