equal
deleted
inserted
replaced
61 def node_file(name: Document.Node.Name): JFile = new JFile(name.node) |
61 def node_file(name: Document.Node.Name): JFile = new JFile(name.node) |
62 |
62 |
63 def node_name(file: JFile): Document.Node.Name = |
63 def node_name(file: JFile): Document.Node.Name = |
64 { |
64 { |
65 val node = file.getPath |
65 val node = file.getPath |
66 loaded_theory_name(default_qualifier, Thy_Header.theory_name(node)) match { |
66 theory_name(default_qualifier, Thy_Header.theory_name(node)) match { |
67 case (true, theory) => Document.Node.Name.loaded_theory(theory) |
67 case (true, theory) => Document.Node.Name.loaded_theory(theory) |
68 case (false, theory) => |
68 case (false, theory) => |
69 val master_dir = if (theory == "") "" else file.getParent |
69 val master_dir = if (theory == "") "" else file.getParent |
70 Document.Node.Name(node, master_dir, theory) |
70 Document.Node.Name(node, master_dir, theory) |
71 } |
71 } |