*******************************************************************************/\r
package org.simantics.sysdyn.ui.editor.participant;\r
\r
+import java.util.Map;\r
+\r
import org.simantics.databoard.Bindings;\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.Resource;\r
import org.simantics.structural.stubs.StructuralResource2;\r
import org.simantics.utils.datastructures.BinaryFunction;\r
\r
-public class SysdynComponentCopyAdvisor extends ComponentCopyAdvisor{\r
+public class SysdynComponentCopyAdvisor extends ComponentCopyAdvisor {\r
\r
@Override\r
- public Object copy(ISynchronizationContext context, WriteGraph graph, Resource source, Resource sourceContainer, Resource targetContainer) throws DatabaseException {\r
+ public Object copy(ISynchronizationContext context, WriteGraph graph, Resource source, Resource sourceContainer, Resource targetContainer, Map<Object, Object> map) throws DatabaseException {\r
\r
BinaryFunction<Boolean, ReadGraph, Statement> tester = new BinaryFunction<Boolean, ReadGraph, Statement>() {\r
\r
\r
StructuralResource2 sr2 = StructuralResource2.getInstance(graph);\r
if(graph.isInstanceOf(source, sr2.Connection)) {\r
- copy = CopyAdvisorUtil.copy(graph, source, tester);\r
+ copy = CopyAdvisorUtil.copy(graph, source, tester, map);\r
} else {\r
copy = CopyAdvisorUtil.copy4(graph, source);\r
}\r