X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.spreadsheet.ui%2Fsrc%2Forg%2Fsimantics%2Fspreadsheet%2Fui%2FExcelAdapter.java;h=a51b32a0fc1f14bc90ea06a2836c0c5636570c37;hb=f56d8b5c5225ef421009dadca4cec0ac56aef019;hp=b21a22500eddf2898fdee4febf1f6ecb6f22b559;hpb=89b915a237d980f62d9ffe2caeb8a69170e0ce56;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.spreadsheet.ui/src/org/simantics/spreadsheet/ui/ExcelAdapter.java b/bundles/org.simantics.spreadsheet.ui/src/org/simantics/spreadsheet/ui/ExcelAdapter.java index b21a22500..a51b32a0f 100644 --- a/bundles/org.simantics.spreadsheet.ui/src/org/simantics/spreadsheet/ui/ExcelAdapter.java +++ b/bundles/org.simantics.spreadsheet.ui/src/org/simantics/spreadsheet/ui/ExcelAdapter.java @@ -25,9 +25,10 @@ import org.simantics.databoard.binding.mutable.Variant; import org.simantics.spreadsheet.Adaptable; import org.simantics.spreadsheet.CellEditor; import org.simantics.spreadsheet.CellEditor.Transaction; -import org.simantics.spreadsheet.ClientModel.OperationMode; import org.simantics.spreadsheet.ClientModel; +import org.simantics.spreadsheet.ClientModel.OperationMode; import org.simantics.spreadsheet.Range; +import org.simantics.spreadsheet.Spreadsheets; import org.simantics.spreadsheet.common.cell.StringCellParser; import org.simantics.spreadsheet.util.SpreadsheetUtils; import org.simantics.utils.threads.logger.ITask; @@ -196,7 +197,7 @@ public class ExcelAdapter implements ActionListener { CellValue cell = (CellValue)table.getValueAt(startRow+i, startCol+j); if(cell.label != null) { - String location = SpreadsheetUtils.cellName(startRow+i, startCol+j); + String location = Spreadsheets.cellName(startRow+i, startCol+j); Boolean computed = model.getPropertyAt(location, ClientModel.COMPUTED); if(computed != null && computed) return; removals.add(location); @@ -221,9 +222,9 @@ public class ExcelAdapter implements ActionListener { startCol+j< table.getColumnCount()) { if (value.startsWith("=")) { - editor.edit(tr, SpreadsheetUtils.cellName(startRow+i, startCol+j), ClientModel.CONTENT_EXPRESSION, value, Bindings.STRING, null); + editor.edit(tr, Spreadsheets.cellName(startRow+i, startCol+j), ClientModel.CONTENT_EXPRESSION, value, Bindings.STRING, null); } else { - editor.edit(tr, SpreadsheetUtils.cellName(startRow+i, startCol+j), Variant.ofInstance(value), null); + editor.edit(tr, Spreadsheets.cellName(startRow+i, startCol+j), Variant.ofInstance(value), null); } } @@ -243,8 +244,8 @@ public class ExcelAdapter implements ActionListener { for(int i=0;i