equal
deleted
inserted
replaced
29 set_content(pretty_text_area) |
29 set_content(pretty_text_area) |
30 |
30 |
31 override def detach_operation = pretty_text_area.detach_operation |
31 override def detach_operation = pretty_text_area.detach_operation |
32 |
32 |
33 private val print_state = |
33 private val print_state = |
34 new Query_Operation(JEdit_Editor, view, "print_state", _ => (), |
34 new Query_Operation(PIDE.editor, view, "print_state", _ => (), |
35 (snapshot, results, body) => |
35 (snapshot, results, body) => |
36 pretty_text_area.update(snapshot, results, Pretty.separate(body))) |
36 pretty_text_area.update(snapshot, results, Pretty.separate(body))) |
37 |
37 |
38 |
38 |
39 /* resize */ |
39 /* resize */ |
64 { |
64 { |
65 GUI_Thread.require {} |
65 GUI_Thread.require {} |
66 |
66 |
67 Document_Model.get(view.getBuffer).map(_.snapshot()) match { |
67 Document_Model.get(view.getBuffer).map(_.snapshot()) match { |
68 case Some(snapshot) => |
68 case Some(snapshot) => |
69 (JEdit_Editor.current_command(view, snapshot), print_state.get_location) match { |
69 (PIDE.editor.current_command(view, snapshot), print_state.get_location) match { |
70 case (Some(command1), Some(command2)) if command1.id == command2.id => |
70 case (Some(command1), Some(command2)) if command1.id == command2.id => |
71 case _ => update_request() |
71 case _ => update_request() |
72 } |
72 } |
73 case None => |
73 case None => |
74 } |
74 } |