src/Tools/jEdit/src/output_dockable.scala
changeset 49418 c451856129cd
parent 49414 d7b5fb2e9ca2
child 49513 796b3139f5a8
--- a/src/Tools/jEdit/src/output_dockable.scala	Tue Sep 18 15:55:29 2012 +0200
+++ b/src/Tools/jEdit/src/output_dockable.scala	Tue Sep 18 17:20:40 2012 +0200
@@ -100,11 +100,8 @@
 
     val new_body =
       if (!restriction.isDefined || restriction.get.contains(new_state.command))
-        new_state.results.iterator.map(_._2).filter(
-        { // FIXME not scalable
-          case XML.Elem(Markup(Isabelle_Markup.TRACING, _), _) => show_tracing
-          case _ => true
-        }).toList
+        new_state.results.iterator.map(_._2)
+          .filter(msg => !Protocol.is_tracing(msg) || show_tracing).toList  // FIXME not scalable
       else current_body
 
     if (new_body != current_body) html_panel.render(new_body)