pub fn handle_text_notification(&self, notification: Option<controller::text::Notification>) {
        use controller::text::Notification;

        debug!(self.logger, "Received text notification {notification:?}");
        let result = match notification {
            Some(Notification::Invalidate) => self.on_text_invalidated(),
            other => {
                warning!(
                    self.logger,
                    "Handling notification {other:?} is not implemented; \
                    performing full invalidation"
                );
                self.refresh_code_editor()
            }
        };
        if let Err(err) = result {
            error!(
                self.logger,
                "Error while updating graph after receiving {notification:?} from \
                controller: {err}"
            );
        }
    }
/// Handle notification received from Text Controller.
Handle notification received from Text Controller.
Handle notification received from Text Controller .
pub fn handle_text_notification(&self, notification: Option<controller::text::Notification>) {
        use controller::text::Notification;
        debug!(self.logger, "Received text notification {notification:?}");
        let result = match notification {
            Some(Notification::Invalidate) => self.on_text_invalidated(),
            other => {
                warning!(
                    self.logger,
                    "Handling notification {other:?} is not implemented; \
                    performing full invalidation"
                );
                self.refresh_code_editor()
            }
        };
        if let Err(err) = result {
            error!(
                self.logger,
                "Error while updating graph after receiving {notification:?} from \
                controller: {err}"
            );
        }
    }
pub fn handle_text_notification ( & self , notification : Option < controller :: text :: Notification > ) { use controller :: text :: Notification ; debug ! ( self logger " " ) ; let result = match notification { Some ( Notification :: Invalidate ) => self . on_text_invalidated ( ) , other => { warning ! ( self logger " \
 " ) ; self . refresh_code_editor ( ) } } ; if let Err ( err ) = result { error ! ( self logger " \
 " ) ; } }
Handle notification received from Text Controller.
Handle notification received from Text Controller .
&self
notification
Option<controller::text::Notification>
&self
notification
Option<controller::text::Notification>