X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.interop.mapping%2Fsrc%2Forg%2Fsimantics%2Finterop%2Fmapping%2FMapper.java;fp=org.simantics.interop.mapping%2Fsrc%2Forg%2Fsimantics%2Finterop%2Fmapping%2FMapper.java;h=3414d4d05f17aafada5b733579783ae245974865;hb=45e54f2af73bfbe7c43e95c7fe7d8d3d8164a2cc;hp=1c787cc6d335e862d097b6bc665def4e3ee8a93c;hpb=3e0a712f496a4aa1beda9d58d27dfe865da04bd1;p=simantics%2Finterop.git diff --git a/org.simantics.interop.mapping/src/org/simantics/interop/mapping/Mapper.java b/org.simantics.interop.mapping/src/org/simantics/interop/mapping/Mapper.java index 1c787cc..3414d4d 100644 --- a/org.simantics.interop.mapping/src/org/simantics/interop/mapping/Mapper.java +++ b/org.simantics.interop.mapping/src/org/simantics/interop/mapping/Mapper.java @@ -394,39 +394,7 @@ public class Mapper { return res.toString(); } - public class WriteWrapper extends WriteGraphProxy { - - - private Collection createdResources = new ArrayList(); - - public WriteWrapper(WriteGraph graph) { - super(graph); - } - - public Collection getCreatedResources() { - return createdResources; - } - - public void clearCreated() { - createdResources = new ArrayList(); - } - - @Override - public Resource newResource() throws ServiceException { - Resource res = graph.newResource(); - createdResources.add(res); - return res; - } - - @Override - public Resource newResource(long clusterId) throws ServiceException { - Resource res = graph.newResource(clusterId); - createdResources.add(res); - return res; - } - - - } + private void initializeRules(Session session, VirtualGraph vg, final Resource model ) throws DatabaseException{ session.syncRequest(new WriteRequest(vg) {