302 { |
302 { |
303 snapshot.cumulate[Vector[Text.Info[JEdit_Editor.Hyperlink]]]( |
303 snapshot.cumulate[Vector[Text.Info[JEdit_Editor.Hyperlink]]]( |
304 range, Vector.empty, JEdit_Rendering.hyperlink_elements, _ => |
304 range, Vector.empty, JEdit_Rendering.hyperlink_elements, _ => |
305 { |
305 { |
306 case (links, Text.Info(info_range, XML.Elem(Markup.Path(name), _))) => |
306 case (links, Text.Info(info_range, XML.Elem(Markup.Path(name), _))) => |
307 val file = PIDE.resources.append_file(snapshot.node_name.master_dir, name) |
307 val file = perhaps_append_file(snapshot.node_name.master_dir, name) |
308 val link = JEdit_Editor.hyperlink_file(true, file) |
308 val link = JEdit_Editor.hyperlink_file(true, file) |
309 Some(links :+ Text.Info(snapshot.convert(info_range), link)) |
309 Some(links :+ Text.Info(snapshot.convert(info_range), link)) |
310 |
310 |
311 case (links, Text.Info(info_range, XML.Elem(Markup.Doc(name), _))) => |
311 case (links, Text.Info(info_range, XML.Elem(Markup.Doc(name), _))) => |
312 JEdit_Editor.hyperlink_doc(name).map(link => |
312 JEdit_Editor.hyperlink_doc(name).map(link => |