@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));
+ }
+ }
+ });
}
});
}