| 275 | } |
| 276 | |
| 277 | void TextEditor::set_edit_state(const Variant &p_state) { |
| 278 | code_editor->set_edit_state(p_state); |
| 279 | |
| 280 | Dictionary state = p_state; |
| 281 | if (state.has("syntax_highlighter")) { |
| 282 | int idx = highlighter_menu->get_item_idx_from_text(state["syntax_highlighter"]); |
| 283 | if (idx >= 0) { |
| 284 | _change_syntax_highlighter(idx); |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | ensure_focus(); |
| 289 | } |
| 290 | |
| 291 | Variant TextEditor::get_navigation_state() { |
| 292 | return code_editor->get_navigation_state(); |
no test coverage detected