directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r505294 - in /directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors: AttributeTypeFormEditorOverviewPage.java ObjectClassFormEditorOverviewPage.java
Date Fri, 09 Feb 2007 13:53:20 GMT
Author: pamarcelot
Date: Fri Feb  9 05:53:19 2007
New Revision: 505294

URL: http://svn.apache.org/viewvc?view=rev&rev=505294
Log:
Changed the way to modify the name of the AT or OC to trigger an AttributeTypeChanged or ObjectClassChanged
event (and this way, let other classes know that the AC/OC has changed).

Modified:
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/AttributeTypeFormEditorOverviewPage.java
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/ObjectClassFormEditorOverviewPage.java

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/AttributeTypeFormEditorOverviewPage.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/AttributeTypeFormEditorOverviewPage.java?view=diff&rev=505294&r1=505293&r2=505294
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/AttributeTypeFormEditorOverviewPage.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/AttributeTypeFormEditorOverviewPage.java
Fri Feb  9 05:53:19 2007
@@ -101,7 +101,13 @@
     {
         public void modifyText( ModifyEvent e )
         {
-            modifiedAttributeType.getNames()[0] = nameText.getText();
+            ArrayList<String> names = new ArrayList<String>();
+            names.add( nameText.getText() );
+            for ( int i = 0; i < aliasesList.length; i++ )
+            {
+                names.add( aliasesList[i] );
+            }
+            modifiedAttributeType.setNames( names.toArray( new String[0] ) );
             setEditorDirty();
         }
     };

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/ObjectClassFormEditorOverviewPage.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/ObjectClassFormEditorOverviewPage.java?view=diff&rev=505294&r1=505293&r2=505294
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/ObjectClassFormEditorOverviewPage.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/editors/ObjectClassFormEditorOverviewPage.java
Fri Feb  9 05:53:19 2007
@@ -103,7 +103,13 @@
     {
         public void modifyText( ModifyEvent e )
         {
-            modifiedObjectClass.getNames()[0] = nameText.getText();
+            ArrayList<String> names = new ArrayList<String>();
+            names.add( nameText.getText() );
+            for ( int i = 0; i < aliasesList.length; i++ )
+            {
+                names.add( aliasesList[i] );
+            }
+            modifiedObjectClass.setNames( names.toArray( new String[0] ) );
             setEditorDirty();
         }
     };



Mime
View raw message