@on_trait_change("<STR_LIT>")<EOL><INDENT>def _diagram_canvas_changed(self, new):<DEDENT>
logger.debug("<STR_LIT>")<EOL>canvas = self.diagram_canvas<EOL>for tool in self.tools:<EOL><INDENT>if canvas is not None:<EOL><INDENT>print("<STR_LIT>" % tool)<EOL>canvas.tools.append(tool(canvas))<EOL><DEDENT><DEDENT>
Handles the diagram canvas being set