From: Antti Villberg Date: Thu, 1 Nov 2018 07:05:29 +0000 (+0200) Subject: For PSaaS X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=408b739d5d84e8aaade8d7a3e4836326e230cb8b;p=simantics%2Fplatform.git For PSaaS Change-Id: Ia475403cda4769be923c7fba4d180269cabca816 --- 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 b784754bf..eb68744b5 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 @@ -24,7 +24,7 @@ import org.simantics.db.layer0.variable.Variables.Role; import org.simantics.layer0.Layer0; import org.simantics.simulator.variable.exceptions.NodeManagerException; -public class StandardGraphChildVariable extends AbstractChildVariable { +public class StandardGraphChildVariable extends AbstractChildVariable implements ProxyVariableSupport { /* * Extension points @@ -335,5 +335,22 @@ public class StandardGraphChildVariable extends AbstractChildVariable { public Resource getPossiblePredicateResource(ReadGraph graph) throws DatabaseException { return null; } - + + @Override + public Variable attachTo(ReadGraph graph, Variable parent) { + return new StandardGraphChildVariable(parent, node, resource); + } + + @Override + public Variable attachToRenamed(ReadGraph graph, Variable parent, String name) { + return new StandardGraphChildVariable(parent, node, resource) { + + @Override + public String getName(ReadGraph graph) throws DatabaseException { + return name; + } + + }; + } + }