src/Tools/jEdit/src/plugin.scala
changeset 50362 1a539d7a0438
parent 50344 608265769ce0
child 50363 2f8dc9e65401
equal deleted inserted replaced
50361:3ae4376cb739 50362:1a539d7a0438
     1 /*  Title:      Tools/jEdit/src/plugin.scala
     1 /*  Title:      Tools/jEdit/src/plugin.scala
     2     Author:     Makarius
     2     Author:     Makarius
     3 
     3 
     4 Main Isabelle/jEdit plugin setup.
     4 Main plumbing for PIDE infrastructure as jEdit plugin.
     5 */
     5 */
     6 
     6 
     7 package isabelle.jedit
     7 package isabelle.jedit
     8 
     8 
     9 
     9 
    13 
    13 
    14 import scala.swing.{ListView, ScrollPane}
    14 import scala.swing.{ListView, ScrollPane}
    15 
    15 
    16 import org.gjt.sp.jedit.{jEdit, EBMessage, EBPlugin, Buffer, View}
    16 import org.gjt.sp.jedit.{jEdit, EBMessage, EBPlugin, Buffer, View}
    17 import org.gjt.sp.jedit.textarea.{JEditTextArea, TextArea}
    17 import org.gjt.sp.jedit.textarea.{JEditTextArea, TextArea}
    18 import org.gjt.sp.jedit.syntax.{Token => JEditToken, ModeProvider}
    18 import org.gjt.sp.jedit.syntax.ModeProvider
    19 import org.gjt.sp.jedit.msg.{EditorStarted, BufferUpdate, EditPaneUpdate, PropertiesChanged}
    19 import org.gjt.sp.jedit.msg.{EditorStarted, BufferUpdate, EditPaneUpdate, PropertiesChanged}
    20 
    20 
    21 import org.gjt.sp.util.SyntaxUtilities
    21 import org.gjt.sp.util.SyntaxUtilities
    22 
    22 
    23 import scala.actors.Actor._
    23 import scala.actors.Actor._
   120   /* full checking */
   120   /* full checking */
   121 
   121 
   122   def check_buffer(buffer: Buffer)
   122   def check_buffer(buffer: Buffer)
   123   {
   123   {
   124     PIDE.document_model(buffer) match {
   124     PIDE.document_model(buffer) match {
       
   125       case Some(model) => model.full_perspective()
   125       case None =>
   126       case None =>
   126       case Some(model) => model.full_perspective()
       
   127     }
   127     }
   128   }
   128   }
   129 
   129 
   130   def cancel_execution() { PIDE.session.cancel_execution() }
   130   def cancel_execution() { PIDE.session.cancel_execution() }
   131 }
   131 }