directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1209103 - /directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorOverviewPage.java
Date Thu, 01 Dec 2011 14:33:40 GMT
Author: pamarcelot
Date: Thu Dec  1 14:33:39 2011
New Revision: 1209103

URL: http://svn.apache.org/viewvc?rev=1209103&view=rev
Log:
Fixed an issue with the syntax length default value in Shared (-1) which is different from
what was used before (0).
-1 values were shown in the syntax length text field.

Modified:
    directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorOverviewPage.java

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorOverviewPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorOverviewPage.java?rev=1209103&r1=1209102&r2=1209103&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorOverviewPage.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorOverviewPage.java
Thu Dec  1 14:33:39 2011
@@ -509,7 +509,7 @@ public class AttributeTypeEditorOverview
     {
         public void modifyText( ModifyEvent e )
         {
-            if ( syntaxLengthText.getText().length() == 0 )
+            if ( syntaxLengthText.getText().length() <= 0 )
             {
                 modifiedAttributeType.setSyntaxLength( -1 );
             }
@@ -948,7 +948,7 @@ public class AttributeTypeEditorOverview
         fillSyntaxCombo();
 
         // SYNTAX LENGTH Field
-        if ( modifiedAttributeType.getSyntaxLength() != 0 )
+        if ( modifiedAttributeType.getSyntaxLength() > 0 )
         {
             syntaxLengthText.setText( modifiedAttributeType.getSyntaxLength() + "" ); //$NON-NLS-1$
         }



Mime
View raw message