61 case class Statistics(props: Properties.T) |
61 case class Statistics(props: Properties.T) |
62 case class Global_Options(options: Options) |
62 case class Global_Options(options: Options) |
63 case object Caret_Focus |
63 case object Caret_Focus |
64 case class Raw_Edits(doc_blobs: Document.Blobs, edits: List[Document.Edit_Text]) |
64 case class Raw_Edits(doc_blobs: Document.Blobs, edits: List[Document.Edit_Text]) |
65 case class Dialog_Result(id: Document_ID.Generic, serial: Long, result: String) |
65 case class Dialog_Result(id: Document_ID.Generic, serial: Long, result: String) |
66 case class Use_Theories(options: Options, id: String, master_dir: Path, thys: List[Path]) |
66 case class Build_Theories(id: String, master_dir: Path, theories: List[(Options, List[Path])]) |
67 case class Commands_Changed( |
67 case class Commands_Changed( |
68 assignment: Boolean, nodes: Set[Document.Node.Name], commands: Set[Command]) |
68 assignment: Boolean, nodes: Set[Document.Node.Name], commands: Set[Command]) |
69 |
69 |
70 sealed abstract class Phase |
70 sealed abstract class Phase |
71 case object Inactive extends Phase |
71 case object Inactive extends Phase |
552 |
552 |
553 case Session.Dialog_Result(id, serial, result) if prover.defined => |
553 case Session.Dialog_Result(id, serial, result) if prover.defined => |
554 prover.get.dialog_result(serial, result) |
554 prover.get.dialog_result(serial, result) |
555 handle_output(new Prover.Output(Protocol.Dialog_Result(id, serial, result))) |
555 handle_output(new Prover.Output(Protocol.Dialog_Result(id, serial, result))) |
556 |
556 |
557 case Session.Use_Theories(options, id, master_dir, thys) if prover.defined => |
557 case Session.Build_Theories(id, master_dir, theories) if prover.defined => |
558 prover.get.use_theories(options, id, master_dir, thys) |
558 prover.get.build_theories(id, master_dir, theories) |
559 |
559 |
560 case Protocol_Command(name, args) if prover.defined => |
560 case Protocol_Command(name, args) if prover.defined => |
561 prover.get.protocol_command(name, args:_*) |
561 prover.get.protocol_command(name, args:_*) |
562 |
562 |
563 case change: Session.Change if prover.defined => |
563 case change: Session.Change if prover.defined => |
618 } |
618 } |
619 |
619 |
620 def dialog_result(id: Document_ID.Generic, serial: Long, result: String) |
620 def dialog_result(id: Document_ID.Generic, serial: Long, result: String) |
621 { manager.send(Session.Dialog_Result(id, serial, result)) } |
621 { manager.send(Session.Dialog_Result(id, serial, result)) } |
622 |
622 |
623 def use_theories(options: Options, id: String, master_dir: Path, thys: List[Path]) |
623 def build_theories(id: String, master_dir: Path, theories: List[(Options, List[Path])]) |
624 { manager.send(Session.Use_Theories(options, id, master_dir, thys)) } |
624 { manager.send(Session.Build_Theories(id, master_dir, theories)) } |
625 } |
625 } |