]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Fixed sysdyn component copy advisor after interface changes.
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 20 Apr 2011 08:59:22 +0000 (08:59 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 20 Apr 2011 08:59:22 +0000 (08:59 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@20543 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynComponentCopyAdvisor.java

index 265f2a8a05a1f23abc07bb7096d0304bc9d9865c..22e08f6214164f9c0df46eda85e0cb7947caf4af 100644 (file)
@@ -26,7 +26,7 @@ import org.simantics.utils.datastructures.BinaryFunction;
 public class SysdynComponentCopyAdvisor extends ComponentCopyAdvisor{\r
 \r
     @Override\r
-    public Object copy(ISynchronizationContext context, WriteGraph graph, Resource source) throws DatabaseException {\r
+    public Object copy(ISynchronizationContext context, WriteGraph graph, Resource source, Resource sourceContainer, Resource targetContainer) throws DatabaseException {\r
        \r
        BinaryFunction<Boolean, ReadGraph, Statement> tester = new BinaryFunction<Boolean, ReadGraph, Statement>() {\r
 \r
@@ -47,7 +47,7 @@ public class SysdynComponentCopyAdvisor extends ComponentCopyAdvisor{
        };\r
        \r
         Resource copy = CopyAdvisorUtil.copy(graph, source, tester);\r
-        renameComponent(context, graph, source, copy);\r
+        renameComponent(context, graph, source, copy, sourceContainer, targetContainer);\r
         return copy;\r
     }\r
 }\r