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=e5871be84f8ba53a1c80be728bcfb67231c29279;hp=d3d57c4988709d04cbf43eed31ca2840c9f6a8a1;hpb=fb89ec6bace6b3eef93a4c437171bb173fc861b6;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) {