]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Dirty hack to create right type of connections
authorJussi Koskela <jussi.koskela@semantum.fi>
Wed, 7 Nov 2018 13:54:50 +0000 (15:54 +0200)
committerAntti Villberg <antti.villberg@semantum.fi>
Thu, 27 Dec 2018 14:10:31 +0000 (16:10 +0200)
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sg/DiagramSceneGraphProvider.java

index 9eb653f263b605f9fd5044481320c119d0e94dff..52c024f6baddfe9baadce6d7acfe76e39fed27d8 100644 (file)
@@ -368,7 +368,7 @@ public class DiagramSceneGraphProvider implements ICanvasSceneGraphProvider, IDi
                     }
                     GraphToDiagramSynchronizer sync = new GraphToDiagramSynchronizer(graph, ctx,
                             ElementClassProviders.mappedProvider(
-                                    ElementClasses.CONNECTION, DefaultConnectionClassFactory.CLASS.newClassWith(new StaticObjectAdapter(dr.Connection)),
+                                    ElementClasses.CONNECTION, DefaultConnectionClassFactory.CLASS.newClassWith(new StaticObjectAdapter(dr.RouteGraphConnection)),
                                     ElementClasses.FLAG, FlagClassFactory.createFlagClass(dr.Flag, dr.Flag_Terminal)
                             )
                     );