src/Tools/jEdit/src/document_view.scala
changeset 45467 3f290b6288cf
parent 45460 dcd02d1a25d7
child 45665 129db1416717
equal deleted inserted replaced
45466:98af01f897c9 45467:3f290b6288cf
   291               })
   291               })
   292           if (tooltips.isEmpty) null
   292           if (tooltips.isEmpty) null
   293           else Isabelle.tooltip(tooltips.mkString("\n"))
   293           else Isabelle.tooltip(tooltips.mkString("\n"))
   294         }
   294         }
   295         else {
   295         else {
   296           snapshot.cumulate_markup(Text.Info(range, SortedMap.empty[Long, String]))(
   296           snapshot.cumulate_markup(range)(Isabelle_Markup.tooltip_message) match
   297             Isabelle_Markup.tooltip_message) match
       
   298           {
   297           {
   299             case Text.Info(_, msgs) #:: _ if !msgs.isEmpty =>
   298             case Text.Info(_, msgs) #:: _ if !msgs.isEmpty =>
   300               Isabelle.tooltip(msgs.iterator.map(_._2).mkString("\n"))
   299               Isabelle.tooltip(msgs.iterator.map(_._2).mkString("\n"))
   301             case _ => null
   300             case _ => null
   302           }
   301           }