From: Marko Luukkainen Date: Thu, 28 Mar 2019 17:39:49 +0000 (+0200) Subject: Allow overriding initContext of DiagramSceneGraphProvider X-Git-Tag: v1.43.0~136^2~169 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=f193467af9ac7fec6c815a35c21d2309b1c6200e;p=simantics%2Fplatform.git Allow overriding initContext of DiagramSceneGraphProvider refs #282 Change-Id: I2f8db2fc60230cf6e24ed771ee1cfeb180e8c82a --- 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);