]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Dirty hack to create right type of connections private/balas7
authorJussi Koskela <jussi.koskela@semantum.fi>
Wed, 7 Nov 2018 13:54:50 +0000 (15:54 +0200)
committerJussi Koskela <jussi.koskela@semantum.fi>
Thu, 15 Nov 2018 07:46:35 +0000 (09:46 +0200)
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sg/DiagramSceneGraphProvider.java

index 6574b31b628bfbc735ba884415199c266b036a09..ebfa4d72566e8b9e14698990edcdb2420857a816 100644 (file)
@@ -364,7 +364,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)
                             )
                     );