X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.interop.mapping%2Fsrc%2Forg%2Fsimantics%2Finterop%2Fmapping%2FMapper.java;h=5e74cf95d9c16e9464289075850637b4b4bd748f;hb=db6def39515fd442543064502a9ae7ae07ffc160;hp=60c5c4835862dd683b78c8ab1c4149b13ebd0200;hpb=ee84f0b8a58b513ef47968a83ad7ffadd931af55;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 60c5c48..5e74cf9 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 @@ -319,7 +319,7 @@ public class Mapper { - private void applyGenerations(WriteGraph graph, Collection> nodes, IProgressMonitor monitor) throws Exception { + protected void applyGenerations(WriteGraph graph, Collection> nodes, IProgressMonitor monitor) throws Exception { int size = nodes.size(); int count = 0; @@ -369,7 +369,7 @@ public class Mapper { } } - private void applyConnections(WriteGraph g, Collection> nodes, IProgressMonitor monitor) throws Exception { + protected void applyConnections(WriteGraph g, Collection> nodes, IProgressMonitor monitor) throws Exception { int size = nodes.size(); int count = 0; @@ -397,7 +397,7 @@ public class Mapper { - private void initializeRules(Session session, VirtualGraph vg, final Resource model ) throws DatabaseException{ + protected void initializeRules(Session session, VirtualGraph vg, final Resource model ) throws DatabaseException{ session.syncRequest(new WriteRequest(vg) { @Override public void perform(WriteGraph g) throws DatabaseException { @@ -409,7 +409,7 @@ public class Mapper { } - private void collect(ReadGraph g) throws DatabaseException { + protected void collect(ReadGraph g) throws DatabaseException { if (vg != null) return; SessionGarbageCollection.gc(g, 0, -1); @@ -417,7 +417,7 @@ public class Mapper { int collect = 0; - private void collect2(ReadGraph g) throws DatabaseException { + protected void collect2(ReadGraph g) throws DatabaseException { if (vg != null) return; @@ -429,7 +429,7 @@ public class Mapper { } } - private void applyModifications(Session session, final Collection> nodes, final IProgressMonitor monitor) throws Exception { + protected void applyModifications(Session session, final Collection> nodes, final IProgressMonitor monitor) throws Exception { @@ -545,7 +545,7 @@ public class Mapper { }); } - private void applyGenerations(Session session, VirtualGraph vg, Collection> nodes, IProgressMonitor monitor) throws Exception { + protected void applyGenerations(Session session, VirtualGraph vg, Collection> nodes, IProgressMonitor monitor) throws Exception { int size = nodes.size(); int count = 0; @@ -678,7 +678,7 @@ public class Mapper { } } - private void applyConnections(Session session, VirtualGraph vg, Collection> nodes, IProgressMonitor monitor) throws Exception { + protected void applyConnections(Session session, VirtualGraph vg, Collection> nodes, IProgressMonitor monitor) throws Exception { int size = nodes.size(); int count = 0; @@ -730,7 +730,7 @@ public class Mapper { }); } - private void applyModifications(ReadGraph g, GraphNode n, Pair modRule, Collection> ruleModified) throws Exception { + protected void applyModifications(ReadGraph g, GraphNode n, Pair modRule, Collection> ruleModified) throws Exception { if (!n.isDisposed() && modRule.first.matches(g, n)) { // we have to check Collection> perRule = new ArrayList>(); perRule.add(n); @@ -738,7 +738,7 @@ public class Mapper { } } - private void applyConnections(WriteGraph g, GraphNode node) throws Exception { + protected void applyConnections(WriteGraph g, GraphNode node) throws Exception { for (Link link : node.getLinks()) { if (link.isMain()) {