equal
deleted
inserted
replaced
465 def apply(content: String): JSON.T = |
465 def apply(content: String): JSON.T = |
466 Notification("PIDE/dynamic_output", Map("content" -> content)) |
466 Notification("PIDE/dynamic_output", Map("content" -> content)) |
467 } |
467 } |
468 |
468 |
469 |
469 |
|
470 /* state output */ |
|
471 |
|
472 object State_Output |
|
473 { |
|
474 def apply(id: Counter.ID, content: String): JSON.T = |
|
475 Notification("PIDE/state_output", Map("id" -> id, "content" -> content)) |
|
476 } |
|
477 |
|
478 class State_Id_Notification(name: String) |
|
479 { |
|
480 def unapply(json: JSON.T): Option[Counter.ID] = |
|
481 json match { |
|
482 case Notification(method, Some(params)) if method == name => JSON.long(params, "id") |
|
483 case _ => None |
|
484 } |
|
485 } |
|
486 |
|
487 object State_Init extends Notification0("PIDE/state_init") |
|
488 object State_Exit extends State_Id_Notification("PIDE/state_exit") |
|
489 object State_Locate extends State_Id_Notification("PIDE/state_locate") |
|
490 object State_Update extends State_Id_Notification("PIDE/state_update") |
|
491 |
|
492 |
470 /* preview */ |
493 /* preview */ |
471 |
494 |
472 object Preview_Request |
495 object Preview_Request |
473 { |
496 { |
474 def unapply(json: JSON.T): Option[(JFile, Int)] = |
497 def unapply(json: JSON.T): Option[(JFile, Int)] = |