src/Pure/Thy/sessions.scala
changeset 66966 f3f9a492bee6
parent 66965 9cec50354099
child 66967 e365c91c72a9
--- a/src/Pure/Thy/sessions.scala	Tue Oct 31 18:56:24 2017 +0100
+++ b/src/Pure/Thy/sessions.scala	Tue Oct 31 19:29:24 2017 +0100
@@ -123,6 +123,9 @@
     def platform_path: Base = copy(known = known.platform_path)
     def standard_path: Base = copy(known = known.standard_path)
 
+    def theory_qualifier(name: Document.Node.Name): String =
+      global_theories.getOrElse(name.theory, Long_Name.qualifier(name.theory))
+
     def loaded_theory(name: String): Boolean = loaded_theories.defined(name)
     def loaded_theory(name: Document.Node.Name): Boolean = loaded_theory(name.theory)
 
@@ -260,7 +263,7 @@
 
               def node(name: Document.Node.Name): Graph_Display.Node =
               {
-                val qualifier = resources.theory_qualifier(name)
+                val qualifier = imports_base.theory_qualifier(name)
                 if (qualifier == info.name)
                   Graph_Display.Node(name.theory_base_name, "theory." + name.theory)
                 else session_node(qualifier)