equal
deleted
inserted
replaced
181 def set_document(text: Text, path: String) { |
181 def set_document(text: Text, path: String) { |
182 this.document = new ProofDocument(text, this) |
182 this.document = new ProofDocument(text, this) |
183 process.ML("ThyLoad.add_path " + IsabelleSyntax.encode_string(path)) |
183 process.ML("ThyLoad.add_path " + IsabelleSyntax.encode_string(path)) |
184 |
184 |
185 document.structural_changes += (changes => { |
185 document.structural_changes += (changes => { |
186 for (cmd <- changes.removedCommands) remove(cmd) |
186 for (cmd <- changes.removed_commands) remove(cmd) |
187 for (cmd <- changes.addedCommands) send(cmd) |
187 for (cmd <- changes.added_commands) send(cmd) |
188 }) |
188 }) |
189 if (initialized) { |
189 if (initialized) { |
190 document.activate() |
190 document.activate() |
191 activated.event(()) |
191 activated.event(()) |
192 } |
192 } |