directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r480073 - /directory/sandbox/pamarcelot/ldapstudio/ldapstudio-browser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/RenameAttributeAction.java
Date Tue, 28 Nov 2006 14:52:14 GMT
Author: pamarcelot
Date: Tue Nov 28 06:52:10 2006
New Revision: 480073

URL: http://svn.apache.org/viewvc?view=rev&rev=480073
Log:
Fixing a bug that caused the Attribute View to not reflect the real values of the selected
entries after editing an attribute, selecting another entry and then coming back on the edited
entry (Only the UI was updated, not the model)

Modified:
    directory/sandbox/pamarcelot/ldapstudio/ldapstudio-browser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/RenameAttributeAction.java

Modified: directory/sandbox/pamarcelot/ldapstudio/ldapstudio-browser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/RenameAttributeAction.java
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/ldapstudio/ldapstudio-browser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/RenameAttributeAction.java?view=diff&rev=480073&r1=480072&r2=480073
==============================================================================
--- directory/sandbox/pamarcelot/ldapstudio/ldapstudio-browser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/RenameAttributeAction.java
(original)
+++ directory/sandbox/pamarcelot/ldapstudio/ldapstudio-browser/src/main/java/org/apache/directory/ldapstudio/browser/controller/actions/RenameAttributeAction.java
Tue Nov 28 06:52:10 2006
@@ -239,6 +239,9 @@
 
                 if ( modifyResponse.getLdapResult().getResultCode() == 0 )
                 {
+                    entry.getPartialAttributeList().get( getAttributeName() ).remove( getAttributeValue()
);
+                    entry.getPartialAttributeList().get( getAttributeName() ).add( textEditor.getText()
);
+                    
                     TableItem item = view.getSelectedAttributeTableItem();
                     item.setText( 1, textEditor.getText() );
                     view.getViewer().refresh( item );



Mime
View raw message