]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Document server should use variable value request with binding 01/201/2
authorAntti Villberg <antti.villberg@semantum.fi>
Wed, 14 Dec 2016 07:19:47 +0000 (09:19 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 14 Dec 2016 07:18:20 +0000 (09:18 +0200)
refs #6876

Change-Id: I772b301b7b66f60e2834d01e9a1a7b1d300adb26

bundles/org.simantics.document.server/src/org/simantics/document/server/Functions.java

index 2ba85b733adc1d10d8888afe9cb0f27f6161c1bd..e374b700f9a821168ac14811d44c436b36ae390b 100644 (file)
@@ -29,7 +29,7 @@ import org.simantics.db.layer0.function.All;
 import org.simantics.db.layer0.request.ProjectModels;\r
 import org.simantics.db.layer0.request.VariableProperty;\r
 import org.simantics.db.layer0.request.VariableRead;\r
-import org.simantics.db.layer0.request.VariableValue;\r
+import org.simantics.db.layer0.request.VariableValueWithBinding;\r
 import org.simantics.db.layer0.variable.ConstantPropertyVariable;\r
 import org.simantics.db.layer0.variable.ProxyChildVariable;\r
 import org.simantics.db.layer0.variable.ProxySessionRequest;\r
@@ -1071,7 +1071,7 @@ public class Functions {
     \r
     public static Object getPropertyValueCached(ReadGraph graph, Variable variable, String name, Binding binding) throws DatabaseException {\r
        Variable property = graph.syncRequest(new VariableProperty(variable, name));\r
-       return graph.syncRequest(new VariableValue<Object>(property));\r
+       return graph.syncRequest(new VariableValueWithBinding<Object>(property, binding));\r
     }\r
 \r
     public static class ParentExistsRequest extends VariableRead<Boolean> {\r