]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Allow overriding initContext of DiagramSceneGraphProvider 23/2823/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Thu, 28 Mar 2019 17:39:49 +0000 (19:39 +0200)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Thu, 28 Mar 2019 17:39:49 +0000 (19:39 +0200)
refs #282

Change-Id: I2f8db2fc60230cf6e24ed771ee1cfeb180e8c82a

bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sg/DiagramSceneGraphProvider.java

index 6574b31b628bfbc735ba884415199c266b036a09..4ef9c6369c250bd873743ed929d99750b73bf37f 100644 (file)
@@ -189,7 +189,7 @@ public class DiagramSceneGraphProvider implements ICanvasSceneGraphProvider, IDi
                return new MappedElementCopyAdvisor(new ElementCopyAdvisor(), new ComponentCopyAdvisor());
     }
     
-    private void initContext(CanvasContext ctx) {
+    protected void initContext(CanvasContext ctx) {
         boolean unlock = false;
         if (!ctx.isLocked()) {
             ctx.setLocked(true);