src/Pure/PIDE/markup.scala
changeset 52111 1fd184eaa310
parent 51818 517f232e867d
child 52563 f9a20c2c3b70
equal deleted inserted replaced
52108:06db08182c4b 52111:1fd184eaa310
   314   val Function = new Properties.String(FUNCTION)
   314   val Function = new Properties.String(FUNCTION)
   315 
   315 
   316   val Assign_Execs: Properties.T = List((FUNCTION, "assign_execs"))
   316   val Assign_Execs: Properties.T = List((FUNCTION, "assign_execs"))
   317   val Removed_Versions: Properties.T = List((FUNCTION, "removed_versions"))
   317   val Removed_Versions: Properties.T = List((FUNCTION, "removed_versions"))
   318 
   318 
       
   319   object Protocol_Handler
       
   320   {
       
   321     def unapply(props: Properties.T): Option[(String)] =
       
   322       props match {
       
   323         case List((FUNCTION, "protocol_handler"), (NAME, name)) => Some(name)
       
   324         case _ => None
       
   325       }
       
   326   }
       
   327 
       
   328   val INVOKE_SCALA = "invoke_scala"
   319   object Invoke_Scala
   329   object Invoke_Scala
   320   {
   330   {
   321     def unapply(props: Properties.T): Option[(String, String)] =
   331     def unapply(props: Properties.T): Option[(String, String)] =
   322       props match {
   332       props match {
   323         case List((FUNCTION, "invoke_scala"), (NAME, name), (ID, id)) => Some((name, id))
   333         case List((FUNCTION, INVOKE_SCALA), (NAME, name), (ID, id)) => Some((name, id))
   324         case _ => None
   334         case _ => None
   325       }
   335       }
   326   }
   336   }
       
   337 
       
   338   val CANCEL_SCALA = "cancel_scala"
   327   object Cancel_Scala
   339   object Cancel_Scala
   328   {
   340   {
   329     def unapply(props: Properties.T): Option[String] =
   341     def unapply(props: Properties.T): Option[String] =
   330       props match {
   342       props match {
   331         case List((FUNCTION, "cancel_scala"), (ID, id)) => Some(id)
   343         case List((FUNCTION, CANCEL_SCALA), (ID, id)) => Some(id)
   332         case _ => None
   344         case _ => None
   333       }
   345       }
   334   }
   346   }
   335 
   347 
   336   object ML_Statistics
   348   object ML_Statistics