src/Tools/jEdit/src/jedit_editor.scala
changeset 71601 97ccf48c2f0c
parent 70167 b33f28c81ba9
child 71685 d5773922358d
equal deleted inserted replaced
71600:64aad1e46f98 71601:97ccf48c2f0c
   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 =