directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1691611 - /directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/widgets/TableWidget.java
Date Fri, 17 Jul 2015 16:44:26 GMT
Author: elecharny
Date: Fri Jul 17 16:44:25 2015
New Revision: 1691611

URL: http://svn.apache.org/r1691611
Log:
Fixed the addition for ordered elements

Modified:
    directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/widgets/TableWidget.java

Modified: directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/widgets/TableWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/widgets/TableWidget.java?rev=1691611&r1=1691610&r2=1691611&view=diff
==============================================================================
--- directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/widgets/TableWidget.java
(original)
+++ directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/widgets/TableWidget.java
Fri Jul 17 16:44:25 2015
@@ -795,7 +795,14 @@ public class TableWidget<E> extends Abst
                         elements.add( editPosition, newElement );
                     }
                 }
+                else
+                {
+                    // Remove the original element
+                    elements.remove( selectedElement );
 
+                    elements.add( editPosition, newElement );
+                }
+                
                 elementTableViewer.refresh();
                 elementTableViewer.setSelection( new StructuredSelection( newElement.toString()
) );
 



Mime
View raw message