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
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;
+ }
+
+ };
+ }
+
}