]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Spreadsheet updates cell values properly 49/1949/1
authorMiro Richard Eklund <miro.eklund@semantum.fi>
Wed, 25 Jul 2018 09:33:33 +0000 (12:33 +0300)
committerMiro Richard Eklund <miro.eklund@semantum.fi>
Wed, 25 Jul 2018 09:33:33 +0000 (12:33 +0300)
Cells referencing other cells weren't updated after change
"8c8283a01e63980527d605936286747006bea601" (see in History view), in
StandardNodeManager.java. I added a new setValue function that takes a
list of Nodes that need to be updated (removes them from valueCache),
which allows only specific cells to be updated when another cell is
updated.
I also removed invalidation code from Spreadsheet's "All.java" class and
added them to the value updated in SpreadsheetNodeManager, which
invalidates recursively the cells the use another cell.
I also made sure that SpreadsheetCells jave the same properties through
their life-cycle, rather than creating a properties map whenever the
properties are called.

gitlab #48
gitlab #54
gitlab #55

Change-Id: I125f644e014310937ed7697e9f44ec33825f9b0f


No differences found