tuned signature;
authorwenzelm
Sat, 19 Dec 2020 12:05:17 +0100
changeset 73196 c007d0fa0938
parent 73195 942bf91545fa
child 73197 75fc90edc0a8
tuned signature;
src/Pure/PIDE/resources.scala
src/Pure/Thy/presentation.scala
--- a/src/Pure/PIDE/resources.scala	Sat Dec 19 11:43:24 2020 +0100
+++ b/src/Pure/PIDE/resources.scala	Sat Dec 19 12:05:17 2020 +0100
@@ -54,12 +54,12 @@
   def make_theory_content(thy_name: Document.Node.Name): Option[String] =
     File_Format.registry.get_theory(thy_name).flatMap(_.make_theory_content(resources, thy_name))
 
-  def make_preview(snapshot: Document.Snapshot): Option[Presentation.Preview] =
-    File_Format.registry.get(snapshot.node_name).flatMap(_.make_preview(snapshot))
-
   def is_hidden(name: Document.Node.Name): Boolean =
     !name.is_theory || name.theory == Sessions.root_name || File_Format.registry.is_theory(name)
 
+  def file_preview(snapshot: Document.Snapshot): Option[Presentation.Preview] =
+    File_Format.registry.get(snapshot.node_name).flatMap(_.make_preview(snapshot))
+
 
   /* file-system operations */
 
--- a/src/Pure/Thy/presentation.scala	Sat Dec 19 11:43:24 2020 +0100
+++ b/src/Pure/Thy/presentation.scala	Sat Dec 19 12:05:17 2020 +0100
@@ -376,7 +376,7 @@
       Preview(title, content)
     }
     else {
-      resources.make_preview(snapshot) match {
+      resources.file_preview(snapshot) match {
         case Some(preview) => preview
         case None =>
           val title =