From 555104beef5183e6ea2bf20d47ce34e202facae1 Mon Sep 17 00:00:00 2001 From: lehtonen Date: Tue, 27 Nov 2012 21:43:02 +0000 Subject: [PATCH] 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 --- .../src/org/simantics/sysdyn/ui/editor/DiagramViewer.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.47.1