X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.structural.synchronization.client%2Fsrc%2Forg%2Fsimantics%2Fstructural%2Fsynchronization%2Fbase%2FUpdateComponentUids.java;h=df63ada0525911d50cd84c636989f1fe8e30d34c;hp=dad99c8cee76487334b8119c58cbdf8c9069b716;hb=6b4432af6fe79c859dd1ddb31fd185d64c729863;hpb=851d3d63d340681a010141197d9284d63745ca59 diff --git a/bundles/org.simantics.structural.synchronization.client/src/org/simantics/structural/synchronization/base/UpdateComponentUids.java b/bundles/org.simantics.structural.synchronization.client/src/org/simantics/structural/synchronization/base/UpdateComponentUids.java index dad99c8ce..df63ada05 100644 --- a/bundles/org.simantics.structural.synchronization.client/src/org/simantics/structural/synchronization/base/UpdateComponentUids.java +++ b/bundles/org.simantics.structural.synchronization.client/src/org/simantics/structural/synchronization/base/UpdateComponentUids.java @@ -5,6 +5,7 @@ import org.simantics.db.ReadGraph; import org.simantics.db.exception.CancelTransactionException; import org.simantics.db.exception.DatabaseException; import org.simantics.db.layer0.variable.Variable; +import org.simantics.structural.synchronization.utils.ComponentBase; import gnu.trove.map.hash.THashMap; @@ -35,6 +36,7 @@ public class UpdateComponentUids> { this.componentMonitor = monitor instanceof ComponentUpdateProgressMonitor ? (ComponentUpdateProgressMonitor) monitor : null; this.graph = graph; this.componentCount = componentCount; + this.oldToNewUids = new THashMap<>(componentCount); } private void update(T component, Variable variable) throws DatabaseException {