src/Tools/jEdit/src/document_view.scala
changeset 57612 990ffb84489b
parent 56883 38c6b70e5e53
child 58748 8f92f17d8781
--- a/src/Tools/jEdit/src/document_view.scala	Wed Jul 23 11:08:24 2014 +0200
+++ b/src/Tools/jEdit/src/document_view.scala	Wed Jul 23 11:19:24 2014 +0200
@@ -27,7 +27,7 @@
 
   def apply(text_area: TextArea): Option[Document_View] =
   {
-    Swing_Thread.require {}
+    GUI_Thread.require {}
     text_area.getClientProperty(key) match {
       case doc_view: Document_View => Some(doc_view)
       case _ => None
@@ -36,7 +36,7 @@
 
   def exit(text_area: JEditTextArea)
   {
-    Swing_Thread.require {}
+    GUI_Thread.require {}
     apply(text_area) match {
       case None =>
       case Some(doc_view) =>
@@ -71,7 +71,7 @@
 
   def perspective(snapshot: Document.Snapshot): Text.Perspective =
   {
-    Swing_Thread.require {}
+    GUI_Thread.require {}
 
     val active_command =
     {
@@ -125,7 +125,7 @@
       start: Array[Int], end: Array[Int], y: Int, line_height: Int)
     {
       rich_text_area.robust_body(()) {
-        Swing_Thread.assert {}
+        GUI_Thread.assert {}
 
         val gutter = text_area.getGutter
         val width = GutterOptionPane.getSelectionAreaWidth
@@ -173,7 +173,7 @@
   /* caret handling */
 
   private val delay_caret_update =
-    Swing_Thread.delay_last(PIDE.options.seconds("editor_input_delay")) {
+    GUI_Thread.delay_last(PIDE.options.seconds("editor_input_delay")) {
       session.caret_focus.post(Session.Caret_Focus)
     }
 
@@ -187,7 +187,7 @@
   private object overview extends Text_Overview(this)
   {
     val delay_repaint =
-      Swing_Thread.delay_first(PIDE.options.seconds("editor_update_delay")) { repaint() }
+      GUI_Thread.delay_first(PIDE.options.seconds("editor_update_delay")) { repaint() }
   }
 
 
@@ -200,7 +200,7 @@
 
       case changed: Session.Commands_Changed =>
         val buffer = model.buffer
-        Swing_Thread.later {
+        GUI_Thread.later {
           JEdit_Lib.buffer_lock(buffer) {
             if (model.buffer == text_area.getBuffer) {
               val snapshot = model.snapshot()