File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/nvs/dialog Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 2525import org .eclipse .jface .dialogs .MessageDialog ;
2626import org .eclipse .jface .fieldassist .ControlDecoration ;
2727import org .eclipse .jface .fieldassist .FieldDecorationRegistry ;
28+ import org .eclipse .jface .viewers .ArrayContentProvider ;
2829import org .eclipse .jface .viewers .CellEditor ;
2930import org .eclipse .jface .viewers .ComboBoxCellEditor ;
3031import org .eclipse .jface .viewers .ICellModifier ;
31- import org .eclipse .jface .viewers .IStructuredContentProvider ;
3232import org .eclipse .jface .viewers .TableViewer ;
3333import org .eclipse .jface .viewers .TextCellEditor ;
3434import org .eclipse .jface .viewers .ViewerCell ;
@@ -467,12 +467,7 @@ private void createSizeOfPartitionLable(Composite parent)
467467 private void createTableViewer ()
468468 {
469469 tableViewer = new TableViewer (csvTable );
470- tableViewer .setContentProvider ((IStructuredContentProvider ) input -> {
471- @ SuppressWarnings ("unchecked" )
472- List <NvsTableBean > list = (List <NvsTableBean >) input ;
473- return list .toArray ();
474- });
475-
470+ tableViewer .setContentProvider (ArrayContentProvider .getInstance ());
476471 try
477472 {
478473 List <NvsTableBean > list = new NvsTableDataService ().parseCsv (Paths .get (csvFile .getLocationURI ()));
You can’t perform that action at this time.
0 commit comments