src/Tools/jEdit/src/jedit_editor.scala
changeset 54522 761be40990f1
parent 54521 744ea0025e11
child 54528 842adea880a4
--- a/src/Tools/jEdit/src/jedit_editor.scala	Tue Nov 19 20:53:43 2013 +0100
+++ b/src/Tools/jEdit/src/jedit_editor.scala	Tue Nov 19 20:59:05 2013 +0100
@@ -19,21 +19,12 @@
 
   override def session: Session = PIDE.session
 
-  def document_models(): List[Document_Model] =
-    for {
-      buffer <- JEdit_Lib.jedit_buffers().toList
-      model <- PIDE.document_model(buffer)
-    } yield model
-
-  def document_blobs(): Document.Blobs =
-    document_models().filterNot(_.is_theory).map(model => (model.node_name -> model.blob())).toMap
-
   override def flush()
   {
     Swing_Thread.require()
 
-    val edits = document_models().flatMap(_.flushed_edits())
-    if (!edits.isEmpty) session.update(document_blobs(), edits)
+    val edits = PIDE.document_models().flatMap(_.flushed_edits())
+    if (!edits.isEmpty) session.update(PIDE.document_blobs(), edits)
   }
 
   private val delay_flush =