\r
\r
}\r
+ \r
+ @Override\r
+ public ICanvasContext createViewerCanvas() {\r
+ ICanvasContext ctx = super.createViewerCanvas();\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
+ return ctx;\r
+ }\r
\r
@Override\r
protected void onCreated() {\r
sourceDiagram.setHint(DiagramHints.KEY_ALLOW_ROUTE_POINTS, Boolean.FALSE);\r
sourceDiagram.setHint(SynchronizationHints.COPY_ADVISOR, new MappedElementCopyAdvisor(new ElementCopyAdvisor(), new SysdynComponentCopyAdvisor()));\r
-\r
- IHintContext h = canvasContext.getDefaultHintContext();\r
- h.setHint(GridPainter.KEY_GRID_ENABLED, Boolean.FALSE);\r
- h.setHint(RulerPainter.KEY_RULER_ENABLED, Boolean.FALSE);\r
}\r
\r
@Override\r