def add_listener(self, node):

        # Determine the node type for this node.
        node_type = self.node_manager.get_node_type(node)

        # Create a monitor to listen for changes to the node.
        monitor = node_type.get_monitor(node)
        if monitor is not None:
            self._start_monitor(monitor)
            self._monitors[self.node_manager.get_key(node)] = monitor

        return
Adds a listener for changes to a node.
dataset/ETHPy150Open enthought/pyface/pyface/tree/node_tree_model.py/NodeTreeModel.add_listener