From f193467af9ac7fec6c815a35c21d2309b1c6200e Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Thu, 28 Mar 2019 19:39:49 +0200 Subject: [PATCH] Allow overriding initContext of DiagramSceneGraphProvider refs #282 Change-Id: I2f8db2fc60230cf6e24ed771ee1cfeb180e8c82a --- .../org/simantics/modeling/ui/sg/DiagramSceneGraphProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sg/DiagramSceneGraphProvider.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sg/DiagramSceneGraphProvider.java index 6574b31b6..4ef9c6369 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sg/DiagramSceneGraphProvider.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sg/DiagramSceneGraphProvider.java @@ -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); -- 2.47.1