src/Pure/Thy/presentation.scala
changeset 72956 c007d0fa0938
parent 72955 942bf91545fa
child 72957 75fc90edc0a8
equal deleted inserted replaced
72955:942bf91545fa 72956:c007d0fa0938
   374       val title = "File " + quote(name.path.file_name)
   374       val title = "File " + quote(name.path.file_name)
   375       val content = output_document(title, HTML.text(snapshot.node.source))
   375       val content = output_document(title, HTML.text(snapshot.node.source))
   376       Preview(title, content)
   376       Preview(title, content)
   377     }
   377     }
   378     else {
   378     else {
   379       resources.make_preview(snapshot) match {
   379       resources.file_preview(snapshot) match {
   380         case Some(preview) => preview
   380         case Some(preview) => preview
   381         case None =>
   381         case None =>
   382           val title =
   382           val title =
   383             if (name.is_theory) "Theory " + quote(name.theory_base_name)
   383             if (name.is_theory) "Theory " + quote(name.theory_base_name)
   384             else "File " + quote(name.path.file_name)
   384             else "File " + quote(name.path.file_name)