You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2010/10/14 20:55:22 UTC

svn commit: r1022651 - /pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewRowEditor.java

Author: tvolkert
Date: Thu Oct 14 18:55:21 2010
New Revision: 1022651

URL: http://svn.apache.org/viewvc?rev=1022651&view=rev
Log:
Minor update to TableViewRowEditor

Modified:
    pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewRowEditor.java

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewRowEditor.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewRowEditor.java?rev=1022651&r1=1022650&r2=1022651&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewRowEditor.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewRowEditor.java Thu Oct 14 18:55:21 2010
@@ -446,17 +446,9 @@ public class TableViewRowEditor implemen
                 saving = true;
                 List<Object> tableData = (List<Object>)tableView.getTableData();
 
-                // Get the row data, represented as a Dictionary
-                Object tableRow = tableData.get(rowIndex);
-                Dictionary<String, Object> rowData;
-                if (tableRow instanceof Dictionary<?, ?>) {
-                    rowData = (Dictionary<String, Object>)tableRow;
-                } else {
-                    rowData = new BeanAdapter(tableRow);
-                }
-
                 // Update the row data using data binding
-                tablePane.store(rowData);
+                Object tableRow = tableData.get(rowIndex);
+                tablePane.store(tableRow);
 
                 // Modifying the table data will close this popup
                 if (tableData.getComparator() == null) {