]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Removed an argument from CopyAdvisorUtil.copy4 in r24382. Modify sysdyn advisor accor...
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 8 Mar 2012 11:33:35 +0000 (11:33 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 8 Mar 2012 11:33:35 +0000 (11:33 +0000)
refs #3272

git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@24383 ac1ea38d-2e2b-0410-8846-a27921b304fc

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

index a689a25234db80da2b3ace018419ced1f84db189..76226ebfbd89838f60eb9eec4d3406b504572797 100644 (file)
@@ -57,12 +57,10 @@ public class SysdynComponentCopyAdvisor extends ComponentCopyAdvisor{
        Resource copy;\r
        \r
        StructuralResource2 sr2 = StructuralResource2.getInstance(graph);\r
-       SimulationResource SIMU = SimulationResource.getInstance(graph);\r
-       Resource model = graph.syncRequest(new PossibleTypedParent(targetContainer, SIMU.Model));\r
        if(graph.isInstanceOf(source, sr2.Connection)) {\r
                 copy = CopyAdvisorUtil.copy(graph, source, tester);\r
        } else {\r
-            copy = CopyAdvisorUtil.copy4(graph, source, model);\r
+            copy = CopyAdvisorUtil.copy4(graph, source);\r
        }\r
 \r
         \r