From: Antti Villberg Date: Wed, 16 Jan 2019 15:41:00 +0000 (+0200) Subject: Spreadsheet changes X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=8987a4b3f6c4bf2791353b474c7b10dd2e004ff6;p=simantics%2Fplatform.git Spreadsheet changes Change-Id: Iaa506070e62e4cef48001dbdc4f496b493ffefeb --- diff --git a/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/SpreadsheetNodeManager.java b/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/SpreadsheetNodeManager.java index b86544c0d..70ddf56ba 100644 --- a/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/SpreadsheetNodeManager.java +++ b/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/SpreadsheetNodeManager.java @@ -33,11 +33,16 @@ public class SpreadsheetNodeManager extends StandardVariableNodeManager cells) { - for(SpreadsheetCell cell : cells) { - System.err.println("Modification in cell " + cell); - refreshVariable(new SpreadsheetCellContent(cell)); - refreshVariable(new SpreadsheetCellContentExpression(cell)); - } + realm.asyncExec(new Runnable() { + @Override + public void run() { + for(SpreadsheetCell cell : cells) { + System.err.println("Modification in cell " + cell); + refreshVariable(new SpreadsheetCellContent(cell)); + refreshVariable(new SpreadsheetCellContentExpression(cell)); + } + } + }); } }); }