X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.layer0%2Fsrc%2Forg%2Fsimantics%2Fdb%2Flayer0%2Fvariable%2FStandardGraphChildVariable.java;h=17fc21ebb911bb2130ff3cd10c662f9a083b9162;hp=af8f75c494dd242534373523bbdfb45d0b6f664f;hb=e40def60eec1abd0a3a9382b3b0b3d64723fee74;hpb=c8cce62f9952ab3f6db451d2f22d969b4e777eaa diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/StandardGraphChildVariable.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/StandardGraphChildVariable.java index af8f75c49..17fc21ebb 100644 --- a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/StandardGraphChildVariable.java +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/StandardGraphChildVariable.java @@ -255,10 +255,12 @@ public class StandardGraphChildVariable extends AbstractChildVariable { return getClass().getSimpleName() + "[" + resource + "]"; } - protected VariableMap getPossiblePropertyVariableMap(ReadGraph graph) throws DatabaseException { + protected VariableMap getPossiblePropertyVariableMap(ReadGraph graph) throws DatabaseException { if(resource == null) return All.standardChildDomainProperties; - return graph.getPossibleRelatedValue2(resource, Layer0.getInstance(graph).domainProperties, this); - } + Resource domainProperties = Layer0.getInstance(graph).domainProperties; + return graph.getPossibleRelatedValue2(resource, domainProperties, + new StandardGraphPropertyVariable(graph, this, domainProperties)); + } protected VariableMap getPossibleChildVariableMap(ReadGraph graph) throws DatabaseException { if(resource == null) return All.standardChildDomainChildren;