From 408b739d5d84e8aaade8d7a3e4836326e230cb8b Mon Sep 17 00:00:00 2001 From: Antti Villberg Date: Thu, 1 Nov 2018 09:05:29 +0200 Subject: [PATCH] For PSaaS Change-Id: Ia475403cda4769be923c7fba4d180269cabca816 --- .../variable/StandardGraphChildVariable.java | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) 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; + } + + }; + } + } -- 2.47.1