src/Tools/jEdit/src/plugin.scala
changeset 65245 e955b33f432c
parent 65244 1f53b9470116
child 65246 848965b5befc
equal deleted inserted replaced
65244:1f53b9470116 65245:e955b33f432c
    40 
    40 
    41   def resources(): JEdit_Resources =
    41   def resources(): JEdit_Resources =
    42     session.resources.asInstanceOf[JEdit_Resources]
    42     session.resources.asInstanceOf[JEdit_Resources]
    43 
    43 
    44   def debugger: Debugger = session.debugger
    44   def debugger: Debugger = session.debugger
    45 
       
    46   def file_watcher(): File_Watcher =
       
    47     if (plugin == null) File_Watcher.none else plugin.file_watcher
       
    48 
    45 
    49   lazy val editor = new JEdit_Editor
    46   lazy val editor = new JEdit_Editor
    50 
    47 
    51 
    48 
    52   /* current document content */
    49   /* current document content */
   422       completion_history.value.save()
   419       completion_history.value.save()
   423     }
   420     }
   424 
   421 
   425     exit_models(JEdit_Lib.jedit_buffers().toList)
   422     exit_models(JEdit_Lib.jedit_buffers().toList)
   426     PIDE.session.stop()
   423     PIDE.session.stop()
   427     PIDE.file_watcher.shutdown()
   424     file_watcher.shutdown()
   428   }
   425   }
   429 }
   426 }