import org.simantics.g2d.element.IElement;\r
import org.simantics.g2d.element.IElementClassProvider;\r
import org.simantics.g2d.element.handler.impl.StaticObjectAdapter;\r
+import org.simantics.g2d.participant.GridPainter;\r
+import org.simantics.g2d.participant.RulerPainter;\r
import org.simantics.modeling.mapping.ElementCopyAdvisor;\r
import org.simantics.modeling.mapping.MappedElementCopyAdvisor;\r
import org.simantics.modeling.ui.diagramEditor.PopulateElementMonitorDropParticipant;\r
ep.update(e);\r
}\r
}\r
+ \r
+ final GridPainter gp = canvasContext.getSingleItem(GridPainter.class);\r
+ if (gp != null)\r
+ gp.getThread().asyncExec(new Runnable() {\r
+ \r
+ @Override\r
+ public void run() {\r
+ gp.setEnabled(false);\r
+ }\r
+ });\r
+ \r
+ final RulerPainter rp = canvasContext.getSingleItem(RulerPainter.class);\r
+ if (rp != null)\r
+ rp.getThread().asyncExec(new Runnable() {\r
+ \r
+ @Override\r
+ public void run() {\r
+ rp.setEnabled(false);\r
+ }\r
+ });\r
+ \r
scheduleZoomToFit();\r
} \r
\r