From: lehtonen Date: Tue, 27 Nov 2012 21:43:02 +0000 (+0000) Subject: Fixed Sysdyn DiagramViewer after changes to the generic DiagramViewer in r26467. X-Git-Tag: simantics-1.10.1~100 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=555104beef5183e6ea2bf20d47ce34e202facae1;p=simantics%2Fsysdyn.git Fixed Sysdyn DiagramViewer after changes to the generic DiagramViewer in r26467. refs #3863 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@26469 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/DiagramViewer.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/DiagramViewer.java index b379b3ea..11285898 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/DiagramViewer.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/DiagramViewer.java @@ -100,15 +100,14 @@ public class DiagramViewer extends org.simantics.modeling.ui.diagramEditor.Diagr } @Override - public ICanvasContext createViewerCanvas() { - ICanvasContext ctx = super.createViewerCanvas(); + public void initializeCanvasContext(CanvasContext ctx) { + super.initializeCanvasContext(ctx); // GRID and RULER have to be set here. They cause deadlocks in Show Module if set in onCreated() IHintContext h = ctx.getDefaultHintContext(); h.setHint(GridPainter.KEY_GRID_ENABLED, Boolean.FALSE); h.setHint(RulerPainter.KEY_RULER_ENABLED, Boolean.FALSE); h.setHint(Hints.KEY_DISPLAY_MARGINS, Boolean.FALSE); h.setHint(Hints.KEY_DISPLAY_PAGE, Boolean.FALSE); - return ctx; } @Override