From 869ad9a736767c3206a8f06bf9a2e4966e2e4d1c Mon Sep 17 00:00:00 2001 From: lehtonen Date: Wed, 20 Apr 2011 08:59:22 +0000 Subject: [PATCH] Fixed sysdyn component copy advisor after interface changes. git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@20543 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../ui/editor/participant/SysdynComponentCopyAdvisor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynComponentCopyAdvisor.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynComponentCopyAdvisor.java index 265f2a8a..22e08f62 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynComponentCopyAdvisor.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynComponentCopyAdvisor.java @@ -26,7 +26,7 @@ import org.simantics.utils.datastructures.BinaryFunction; public class SysdynComponentCopyAdvisor extends ComponentCopyAdvisor{ @Override - public Object copy(ISynchronizationContext context, WriteGraph graph, Resource source) throws DatabaseException { + public Object copy(ISynchronizationContext context, WriteGraph graph, Resource source, Resource sourceContainer, Resource targetContainer) throws DatabaseException { BinaryFunction tester = new BinaryFunction() { @@ -47,7 +47,7 @@ public class SysdynComponentCopyAdvisor extends ComponentCopyAdvisor{ }; Resource copy = CopyAdvisorUtil.copy(graph, source, tester); - renameComponent(context, graph, source, copy); + renameComponent(context, graph, source, copy, sourceContainer, targetContainer); return copy; } } -- 2.47.1