src/Tools/jEdit/src/scala_console.scala
changeset 61590 94ab348eaab2
parent 61558 68b86028e02a
child 62443 133f65ac17e5
equal deleted inserted replaced
61589:d07d0d5a572b 61590:94ab348eaab2
   135   private case class Execute(console: Console, out: Output, err: Output, command: String)
   135   private case class Execute(console: Console, out: Output, err: Output, command: String)
   136     extends Request
   136     extends Request
   137 
   137 
   138   private class Interpreter
   138   private class Interpreter
   139   {
   139   {
   140     private val running = Synchronized(None: Option[Thread])
   140     private val running = Synchronized[Option[Thread]](None)
   141     def interrupt { running.change(opt => { opt.foreach(_.interrupt); opt }) }
   141     def interrupt { running.change(opt => { opt.foreach(_.interrupt); opt }) }
   142 
   142 
   143     private val settings = new GenericRunnerSettings(report_error)
   143     private val settings = new GenericRunnerSettings(report_error)
   144     settings.classpath.value = reconstruct_classpath()
   144     settings.classpath.value = reconstruct_classpath()
   145 
   145