Update structure and value cache when refreshing variable 04/2404/4
authorJussi Koskela <jussi.koskela@semantum.fi>
Wed, 31 Oct 2018 14:03:38 +0000 (16:03 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 20 Nov 2018 09:10:39 +0000 (09:10 +0000)
commit6da46379296ecec681d6b72d053f82f637ed1c3c
tree8fa14cfa64bddc94120a7bcbad7061fd0fb67c0a
parent3fe6778c21d6437e90d08987de6dae7bca89bc6d
Update structure and value cache when refreshing variable

Previous implementation only updated value cache contents after the
previous cached results expired, which could cause unacceptable delays
in new NodeManager query results. Also, if there were no listeners for
the NodeManager query results, results wouldn't get updated anymore.

gitlab #173

Change-Id: I162fbddea7a5b312c7dceb1448d6ef1cc1f07b73
bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/NodeCache.java
bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/NodeSupport.java
bundles/org.simantics.simulator.toolkit.db/src/org/simantics/simulator/toolkit/db/StandardVariableNodeManager.java