src/Tools/jEdit/src/plugin.scala
changeset 50207 54be125d8cdc
parent 50206 6626bc5ed053
child 50208 1382ad6d4774
equal deleted inserted replaced
50206:6626bc5ed053 50207:54be125d8cdc
   139 class Plugin extends EBPlugin
   139 class Plugin extends EBPlugin
   140 {
   140 {
   141   /* theory files */
   141   /* theory files */
   142 
   142 
   143   private lazy val delay_load =
   143   private lazy val delay_load =
   144     Swing_Thread.delay_last(Time.seconds(PIDE.options.real("editor_load_delay")))
   144     Swing_Thread.delay_last(PIDE.options.seconds("editor_load_delay"))
   145     {
   145     {
   146       val view = jEdit.getActiveView()
   146       val view = jEdit.getActiveView()
   147 
   147 
   148       val buffers = JEdit_Lib.jedit_buffers().toList
   148       val buffers = JEdit_Lib.jedit_buffers().toList
   149       if (buffers.forall(_.isLoaded)) {
   149       if (buffers.forall(_.isLoaded)) {
   284 
   284 
   285       val content = Isabelle_Logic.session_content(false)
   285       val content = Isabelle_Logic.session_content(false)
   286       val thy_load = new JEdit_Thy_Load(content.loaded_theories, content.syntax)
   286       val thy_load = new JEdit_Thy_Load(content.loaded_theories, content.syntax)
   287 
   287 
   288       PIDE.session = new Session(thy_load) {
   288       PIDE.session = new Session(thy_load) {
   289         override def output_delay = Time.seconds(PIDE.options.real("editor_output_delay"))
   289         override def output_delay = PIDE.options.seconds("editor_output_delay")
   290         override def reparse_limit = PIDE.options.int("editor_reparse_limit")
   290         override def reparse_limit = PIDE.options.int("editor_reparse_limit")
   291       }
   291       }
   292 
   292 
   293       PIDE.session.phase_changed += session_manager
   293       PIDE.session.phase_changed += session_manager
   294       PIDE.startup_failure = None
   294       PIDE.startup_failure = None