X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.spreadsheet%2Fsrc%2Forg%2Fsimantics%2Fspreadsheet%2Fsolver%2FSpreadsheetCellEditable.java;fp=bundles%2Forg.simantics.spreadsheet%2Fsrc%2Forg%2Fsimantics%2Fspreadsheet%2Fsolver%2FSpreadsheetCellEditable.java;h=246bd705b7a4cb0e585a992711f68a07e1603dd6;hb=1a34a9dcb8ca57e2c8b64c53b79fd3f6f26d70a9;hp=d3d57c4988709d04cbf43eed31ca2840c9f6a8a1;hpb=21159483b097ba61ce610046bfada9593c4f7fee;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.spreadsheet/src/org/simantics/spreadsheet/solver/SpreadsheetCellEditable.java b/bundles/org.simantics.spreadsheet/src/org/simantics/spreadsheet/solver/SpreadsheetCellEditable.java index d3d57c498..246bd705b 100644 --- a/bundles/org.simantics.spreadsheet/src/org/simantics/spreadsheet/solver/SpreadsheetCellEditable.java +++ b/bundles/org.simantics.spreadsheet/src/org/simantics/spreadsheet/solver/SpreadsheetCellEditable.java @@ -57,15 +57,15 @@ public class SpreadsheetCellEditable implements SheetNode { } public boolean editable() { - if (cell.content == null || cell.content instanceof SpreadsheetFormula || cell.content instanceof SpreadsheetSCLConstant) + if (cell.getContent() == null || cell.getContent() instanceof SpreadsheetFormula || cell.getContent() instanceof SpreadsheetSCLConstant) return false; - if (cell.content instanceof String) { - String content = (String) cell.content; + if (cell.getContent() instanceof String) { + String content = (String) cell.getContent(); if (content.isEmpty()) return false; } - if (cell.content instanceof Variant) { - Variant content = (Variant) cell.content; + if (cell.getContent() instanceof Variant) { + Variant content = (Variant) cell.getContent(); if (content.getValue() == null) return false; if (content.getValue() instanceof String) {