fn refresh_node_comment(&self, id: graph_editor::NodeId, node: &controller::graph::Node) {
        if let Some(node_view) = self.view.graph().model.nodes.get_cloned_ref(&id) {
            let comment_as_per_controller = node.info.documentation_text().unwrap_or_default();
            let comment_as_per_view = node_view.comment.value();
            if comment_as_per_controller != comment_as_per_view {
                node_view.set_comment(comment_as_per_controller);
            }
        }
    }
/// Update the documentation comment on the node.
Update the documentation comment on the node.
Update the documentation comment on the node .
fn refresh_node_comment(&self, id: graph_editor::NodeId, node: &controller::graph::Node) {
        if let Some(node_view) = self.view.graph().model.nodes.get_cloned_ref(&id) {
            let comment_as_per_controller = node.info.documentation_text().unwrap_or_default();
            let comment_as_per_view = node_view.comment.value();
            if comment_as_per_controller != comment_as_per_view {
                node_view.set_comment(comment_as_per_controller);
            }
        }
    }
fn refresh_node_comment ( & self , id : graph_editor :: NodeId , node : & controller :: graph :: Node ) { if let Some ( node_view ) = self . view . graph ( ) . model . nodes . get_cloned_ref ( & id ) { let comment_as_per_controller = node . info . documentation_text ( ) . unwrap_or_default ( ) ; let comment_as_per_view = node_view . comment . value ( ) ; if comment_as_per_controller != comment_as_per_view { node_view . set_comment ( comment_as_per_controller ) ; } } }
Update the documentation comment on the node.
Update the documentation comment on the node .
&self
id
graph_editor::NodeId
node
&controller::graph::Node
&self
id
graph_editor::NodeId
node
&controller::graph::Node