X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.structural.synchronization%2Fsrc%2Forg%2Fsimantics%2Fstructural%2Fsynchronization%2Fbase%2FSynchronizationEventHandlerBase.java;h=67b120b6462cc10b3e36364c70e884f91f8c9d9c;hp=a6efeefb2534bc402c25cfc671705ccbb6ad0cbb;hb=99fde2d98f5eda43f77c3fad4c07a2f4f234380c;hpb=77d7e2176bf9b031dbe216339568d316066bcfc1 diff --git a/bundles/org.simantics.structural.synchronization/src/org/simantics/structural/synchronization/base/SynchronizationEventHandlerBase.java b/bundles/org.simantics.structural.synchronization/src/org/simantics/structural/synchronization/base/SynchronizationEventHandlerBase.java index a6efeefb2..67b120b64 100644 --- a/bundles/org.simantics.structural.synchronization/src/org/simantics/structural/synchronization/base/SynchronizationEventHandlerBase.java +++ b/bundles/org.simantics.structural.synchronization/src/org/simantics/structural/synchronization/base/SynchronizationEventHandlerBase.java @@ -248,7 +248,7 @@ public abstract class SynchronizationEventHandlerBase if(oldChildMap != null) for(T component : oldChildMap.values()) { component.clearParent(); - mapping.addPendingRemoval(component); + addPendingRemoval(component); } } // Alternative implementation when uids are not available. @@ -275,7 +275,7 @@ public abstract class SynchronizationEventHandlerBase if(oldChildMap != null) for(T component : oldChildMap.values()) { component.clearParent(); - mapping.addPendingRemoval(component); + addPendingRemoval(component); } } @@ -334,6 +334,12 @@ public abstract class SynchronizationEventHandlerBase } } + protected void addPendingRemoval(T component) { + if (TRACE_EVENTS) + System.out.println("addPendingRemoval(" + component.componentId + " : " + component.solverComponentName + ")"); + mapping.addPendingRemoval(component); + } + private String getSubprocessName(String name, Collection properties) { for(SerializedVariable property : properties)