src/Tools/jEdit/src/plugin.scala
changeset 48884 963b50ec6d73
parent 48872 6124e0d1120a
child 49098 673e0ed547af
equal deleted inserted replaced
48883:04cd2fddb4d9 48884:963b50ec6d73
    37   var plugin: Plugin = null
    37   var plugin: Plugin = null
    38   var session: Session = null
    38   var session: Session = null
    39 
    39 
    40   def thy_load(): JEdit_Thy_Load =
    40   def thy_load(): JEdit_Thy_Load =
    41     session.thy_load.asInstanceOf[JEdit_Thy_Load]
    41     session.thy_load.asInstanceOf[JEdit_Thy_Load]
       
    42 
       
    43   def get_recent_syntax(): Option[Outer_Syntax] =
       
    44   {
       
    45     val current_session = session
       
    46     if (current_session != null) Some(current_session.recent_syntax)
       
    47     else None
       
    48   }
    42 
    49 
    43 
    50 
    44   /* properties */
    51   /* properties */
    45 
    52 
    46   val OPTION_PREFIX = "options.isabelle."
    53   val OPTION_PREFIX = "options.isabelle."