]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Spreadsheet changes
authorAntti Villberg <antti.villberg@semantum.fi>
Wed, 16 Jan 2019 15:41:00 +0000 (17:41 +0200)
committerReino Ruusu <reino.ruusu@semantum.fi>
Thu, 16 May 2019 12:29:49 +0000 (15:29 +0300)
Change-Id: Iaa506070e62e4cef48001dbdc4f496b493ffefeb

bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/SpreadsheetNodeManager.java

index b86544c0dfed7a7e42328334622a84d21c568dbb..70ddf56bad8813d73f8b599c44c31bdb76dfbf86 100644 (file)
@@ -33,11 +33,16 @@ public class SpreadsheetNodeManager extends StandardVariableNodeManager<SheetNod
             
             @Override
             public void cellsChanged(Collection<SpreadsheetCell> 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));
+                        }
+                    }
+                });
             }
         });
     }