}\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