lib/jedit/plugin/isabelle_plugin.scala
changeset 27995 81cce44fa5d7
parent 27991 8e83800a35c8
child 27998 2cd94c30271c
equal deleted inserted replaced
27994:da9d38dcced3 27995:81cce44fa5d7
     5 Isabelle/jEdit plugin -- main setup.
     5 Isabelle/jEdit plugin -- main setup.
     6 */
     6 */
     7 
     7 
     8 package isabelle.jedit
     8 package isabelle.jedit
     9 
     9 
       
    10 import org.gjt.sp.jedit.jEdit
    10 import org.gjt.sp.jedit.EditPlugin
    11 import org.gjt.sp.jedit.EditPlugin
    11 import org.gjt.sp.util.Log
    12 import org.gjt.sp.util.Log
    12 
    13 
    13 import errorlist.DefaultErrorSource
    14 import errorlist.DefaultErrorSource
    14 import errorlist.ErrorSource
    15 import errorlist.ErrorSource
   133       })
   134       })
   134 
   135 
   135 
   136 
   136     /* Isabelle process */
   137     /* Isabelle process */
   137 
   138 
   138     isabelle = new IsabelleProcess("-mno_brackets", "-mno_type_brackets", "-mxsymbols")
   139     val options =
       
   140       (for (mode <- jEdit.getProperty("isabelle.print-modes").split("\\s+") if mode != "")
       
   141         yield "-m" + mode)
       
   142     val args = {
       
   143       val logic = jEdit.getProperty("isabelle.logic")
       
   144       if (logic != "") List(logic) else Nil
       
   145     }
       
   146     isabelle = new IsabelleProcess((options ++ args): _*)
       
   147 
   139     consumer_thread.start
   148     consumer_thread.start
   140 
   149 
   141   }
   150   }
   142 
   151 
   143 
   152