From: lehtonen Date: Thu, 8 Mar 2012 11:33:35 +0000 (+0000) Subject: Removed an argument from CopyAdvisorUtil.copy4 in r24382. Modify sysdyn advisor accor... X-Git-Tag: simantics-1.6~29 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=a3cbe1aaaa28c235f311b6731010a7acfc64c699;p=simantics%2Fsysdyn.git 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 --- 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); }