From a3cbe1aaaa28c235f311b6731010a7acfc64c699 Mon Sep 17 00:00:00 2001 From: lehtonen Date: Thu, 8 Mar 2012 11:33:35 +0000 Subject: [PATCH] Removed an argument from CopyAdvisorUtil.copy4 in r24382. Modify sysdyn advisor accordingly. refs #3272 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@24383 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../ui/editor/participant/SysdynComponentCopyAdvisor.java | 4 +--- 1 file changed, 1 insertion(+), 3 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 a689a252..76226ebf 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 @@ -57,12 +57,10 @@ public class SysdynComponentCopyAdvisor extends ComponentCopyAdvisor{ Resource copy; StructuralResource2 sr2 = StructuralResource2.getInstance(graph); - SimulationResource SIMU = SimulationResource.getInstance(graph); - Resource model = graph.syncRequest(new PossibleTypedParent(targetContainer, SIMU.Model)); if(graph.isInstanceOf(source, sr2.Connection)) { copy = CopyAdvisorUtil.copy(graph, source, tester); } else { - copy = CopyAdvisorUtil.copy4(graph, source, model); + copy = CopyAdvisorUtil.copy4(graph, source); } -- 2.47.1