directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1005466 - in /directory/studio/branches/shared-trunk-merge/plugins: ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/ schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/...
Date Thu, 07 Oct 2010 14:32:57 GMT
Author: pamarcelot
Date: Thu Oct  7 14:32:57 2010
New Revision: 1005466

URL: http://svn.apache.org/viewvc?rev=1005466&view=rev
Log:
Default syntax length for an AT is now 0 in Shared. Fixed our value tests accordingly.

Modified:
    directory/studio/branches/shared-trunk-merge/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/SchemaUtils.java
    directory/studio/branches/shared-trunk-merge/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorOverviewPage.java

Modified: directory/studio/branches/shared-trunk-merge/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/SchemaUtils.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/shared-trunk-merge/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/SchemaUtils.java?rev=1005466&r1=1005465&r2=1005466&view=diff
==============================================================================
--- directory/studio/branches/shared-trunk-merge/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/SchemaUtils.java
(original)
+++ directory/studio/branches/shared-trunk-merge/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/SchemaUtils.java
Thu Oct  7 14:32:57 2010
@@ -684,7 +684,7 @@ public class SchemaUtils
      */
     public static long getSyntaxLengthTransitive( AttributeType atd, Schema schema )
     {
-        if ( atd.getSyntaxLength() != -1 )
+        if ( atd.getSyntaxLength() != 0 )
         {
             return atd.getSyntaxLength();
         }

Modified: directory/studio/branches/shared-trunk-merge/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorOverviewPage.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/shared-trunk-merge/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorOverviewPage.java?rev=1005466&r1=1005465&r2=1005466&view=diff
==============================================================================
--- directory/studio/branches/shared-trunk-merge/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorOverviewPage.java
(original)
+++ directory/studio/branches/shared-trunk-merge/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/editors/attributetype/AttributeTypeEditorOverviewPage.java
Thu Oct  7 14:32:57 2010
@@ -948,7 +948,7 @@ public class AttributeTypeEditorOverview
         fillSyntaxCombo();
 
         // SYNTAX LENGTH Field
-        if ( modifiedAttributeType.getSyntaxLength() != -1 )
+        if ( modifiedAttributeType.getSyntaxLength() != 0 )
         {
             syntaxLengthText.setText( modifiedAttributeType.getSyntaxLength() + "" ); //$NON-NLS-1$
         }



Mime
View raw message