src/Pure/PIDE/resources.scala
changeset 72956 c007d0fa0938
parent 72857 a9e091ccd450
child 72957 75fc90edc0a8
--- 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 */