X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db.layer0%2Fsrc%2Forg%2Fsimantics%2Fdb%2Flayer0%2Fvariable%2FPropertyVariableMapRequest.java;fp=bundles%2Forg.simantics.db.layer0%2Fsrc%2Forg%2Fsimantics%2Fdb%2Flayer0%2Fvariable%2FPropertyVariableMapRequest.java;h=f7d726ff470fa2689964fd9eee3f7d455804aae8;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/PropertyVariableMapRequest.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/PropertyVariableMapRequest.java new file mode 100644 index 000000000..f7d726ff4 --- /dev/null +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/PropertyVariableMapRequest.java @@ -0,0 +1,20 @@ +package org.simantics.db.layer0.variable; + +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.common.request.ResourceRead; +import org.simantics.db.exception.DatabaseException; +import org.simantics.layer0.Layer0; + +public class PropertyVariableMapRequest extends ResourceRead { + + public PropertyVariableMapRequest(Resource context) { + super(context); + } + + @Override + public VariableMap perform(ReadGraph graph) throws DatabaseException { + return graph.getPossibleRelatedValue2(resource, Layer0.getInstance(graph).domainProperties, resource); + } + +}