directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1689879 - /directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/widgets/TableWidget.java
Date Wed, 08 Jul 2015 14:01:50 GMT
Author: elecharny
Date: Wed Jul  8 14:01:50 2015
New Revision: 1689879

URL: http://svn.apache.org/r1689879
Log:
Clear the list of elements when we add a new list.

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=1689879&r1=1689878&r2=1689879&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
Wed Jul  8 14:01:50 2015
@@ -624,6 +624,8 @@ public class TableWidget<E> extends Abst
      */
     public void setElements( List<E> elements )
     {
+        this.elements.clear();
+        
         if ( ( elements != null ) && ( elements.size() > 0 ) )
         {
             sort( elements, decorator );



Mime
View raw message