equal
deleted
inserted
replaced
200 def hyperlink_doc(name: String): Option[Hyperlink] = |
200 def hyperlink_doc(name: String): Option[Hyperlink] = |
201 Doc.contents().collectFirst({ |
201 Doc.contents().collectFirst({ |
202 case doc: Doc.Text_File if doc.name == name => doc.path |
202 case doc: Doc.Text_File if doc.name == name => doc.path |
203 case doc: Doc.Doc if doc.name == name => doc.path}).map(path => |
203 case doc: Doc.Doc if doc.name == name => doc.path}).map(path => |
204 new Hyperlink { |
204 new Hyperlink { |
205 override val external = !path.is_file |
205 override val external: Boolean = !path.is_file |
206 def follow(view: View): Unit = goto_doc(view, path) |
206 def follow(view: View): Unit = goto_doc(view, path) |
207 override def toString: String = "doc " + quote(name) |
207 override def toString: String = "doc " + quote(name) |
208 }) |
208 }) |
209 |
209 |
210 def hyperlink_url(name: String): Hyperlink = |
210 def hyperlink_url(name: String): Hyperlink = |