equal
deleted
inserted
replaced
79 { |
79 { |
80 def platform_path: Known = |
80 def platform_path: Known = |
81 copy(theories = for ((a, b) <- theories) yield (a, b.map(File.platform_path(_))), |
81 copy(theories = for ((a, b) <- theories) yield (a, b.map(File.platform_path(_))), |
82 theories_local = for ((a, b) <- theories_local) yield (a, b.map(File.platform_path(_))), |
82 theories_local = for ((a, b) <- theories_local) yield (a, b.map(File.platform_path(_))), |
83 files = for ((a, b) <- files) yield (a, b.map(c => c.map(File.platform_path(_))))) |
83 files = for ((a, b) <- files) yield (a, b.map(c => c.map(File.platform_path(_))))) |
|
84 |
|
85 def get_file(file: JFile): Option[Document.Node.Name] = |
|
86 files.getOrElse(file.getCanonicalFile, Nil).headOption |
84 } |
87 } |
85 |
88 |
86 object Base |
89 object Base |
87 { |
90 { |
88 def pure(options: Options): Base = session_base(options, Thy_Header.PURE) |
91 def pure(options: Options): Base = session_base(options, Thy_Header.PURE) |
108 def loaded_theory(name: Document.Node.Name): Boolean = |
111 def loaded_theory(name: Document.Node.Name): Boolean = |
109 loaded_theories.isDefinedAt(name.theory) |
112 loaded_theories.isDefinedAt(name.theory) |
110 |
113 |
111 def known_theory(name: String): Option[Document.Node.Name] = |
114 def known_theory(name: String): Option[Document.Node.Name] = |
112 known.theories.get(name) |
115 known.theories.get(name) |
113 |
|
114 def known_file(file: JFile): Option[Document.Node.Name] = |
|
115 known.files.getOrElse(file.getCanonicalFile, Nil).headOption |
|
116 |
116 |
117 def dest_known_theories: List[(String, String)] = |
117 def dest_known_theories: List[(String, String)] = |
118 for ((theory, node_name) <- known.theories.toList) |
118 for ((theory, node_name) <- known.theories.toList) |
119 yield (theory, node_name.node) |
119 yield (theory, node_name.node) |
120 } |
120 } |