directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r561133 - /directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/editors/attributetype/AttributeTypeEditorSourceCodePage.java
Date Mon, 30 Jul 2007 21:32:58 GMT
Author: pamarcelot
Date: Mon Jul 30 14:32:57 2007
New Revision: 561133

URL: http://svn.apache.org/viewvc?view=rev&rev=561133
Log:
Fixed a bug in the SourceCode Page of the Attribute Type Editor. The object OID was stored
as Syntax instead of the Syntax OID itself.

Modified:
    directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/editors/attributetype/AttributeTypeEditorSourceCodePage.java

Modified: directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/editors/attributetype/AttributeTypeEditorSourceCodePage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/editors/attributetype/AttributeTypeEditorSourceCodePage.java?view=diff&rev=561133&r1=561132&r2=561133
==============================================================================
--- directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/editors/attributetype/AttributeTypeEditorSourceCodePage.java
(original)
+++ directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/editors/attributetype/AttributeTypeEditorSourceCodePage.java
Mon Jul 30 14:32:57 2007
@@ -77,7 +77,7 @@
                 ( ( AttributeTypeEditor ) getEditor() ).setDirty( true );
                 OpenLdapSchemaParser parser = new OpenLdapSchemaParser();
                 parser.parse( schemaSourceViewer.getTextWidget().getText() );
-                List attributeTypes = parser.getAttributeTypes();
+                List<?> attributeTypes = parser.getAttributeTypes();
                 if ( attributeTypes.size() != 1 )
                 {
                     // Throw an exception and return
@@ -191,7 +191,7 @@
         modifiedAttributeType.setSingleValue( atl.isSingleValue() );
         modifiedAttributeType.setSubstrName( atl.getSubstr() );
         modifiedAttributeType.setSuperiorName( atl.getSuperior() );
-        modifiedAttributeType.setSyntaxOid( atl.getOid() );
+        modifiedAttributeType.setSyntaxOid( atl.getSyntax() );
         modifiedAttributeType.setUsage( atl.getUsage() );
     }
 



Mime
View raw message