]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Fixed Sysdyn DiagramViewer after changes to the generic DiagramViewer in r26467.
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 27 Nov 2012 21:43:02 +0000 (21:43 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 27 Nov 2012 21:43:02 +0000 (21:43 +0000)
refs #3863

git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@26469 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/DiagramViewer.java

index b379b3ea73504fbe9a5c5eea1f25cb736b1abd64..11285898fd048317044715efc63e9341a74966ff 100644 (file)
@@ -100,15 +100,14 @@ public class DiagramViewer extends org.simantics.modeling.ui.diagramEditor.Diagr
        }\r
        \r
        @Override\r
-    public ICanvasContext createViewerCanvas() {\r
-       ICanvasContext ctx = super.createViewerCanvas();\r
+    public void initializeCanvasContext(CanvasContext ctx) {\r
+       super.initializeCanvasContext(ctx);\r
        // GRID and RULER have to be set here. They cause deadlocks in Show Module if set in onCreated()\r
                IHintContext h = ctx.getDefaultHintContext();\r
                h.setHint(GridPainter.KEY_GRID_ENABLED, Boolean.FALSE);\r
                h.setHint(RulerPainter.KEY_RULER_ENABLED, Boolean.FALSE);\r
                h.setHint(Hints.KEY_DISPLAY_MARGINS, Boolean.FALSE);\r
                h.setHint(Hints.KEY_DISPLAY_PAGE, Boolean.FALSE);\r
-       return ctx;\r
     }\r
 \r
        @Override\r