src/Pure/Thy/sessions.scala
changeset 65524 0910f1733909
parent 65520 f47bc12b6e8a
child 65525 360063716c71
--- a/src/Pure/Thy/sessions.scala	Thu Apr 20 14:59:57 2017 +0200
+++ b/src/Pure/Thy/sessions.scala	Thu Apr 20 15:00:32 2017 +0200
@@ -81,6 +81,9 @@
       copy(theories = for ((a, b) <- theories) yield (a, b.map(File.platform_path(_))),
         theories_local = for ((a, b) <- theories_local) yield (a, b.map(File.platform_path(_))),
         files = for ((a, b) <- files) yield (a, b.map(c => c.map(File.platform_path(_)))))
+
+    def get_file(file: JFile): Option[Document.Node.Name] =
+      files.getOrElse(file.getCanonicalFile, Nil).headOption
   }
 
   object Base
@@ -111,9 +114,6 @@
     def known_theory(name: String): Option[Document.Node.Name] =
       known.theories.get(name)
 
-    def known_file(file: JFile): Option[Document.Node.Name] =
-      known.files.getOrElse(file.getCanonicalFile, Nil).headOption
-
     def dest_known_theories: List[(String, String)] =
       for ((theory, node_name) <- known.theories.toList)
         yield (theory, node_name.node)