src/Tools/jEdit/src/timing_dockable.scala
changeset 59735 24bee1b11fce
parent 59319 677615cba30d
child 60893 3c8b9b4b577c
equal deleted inserted replaced
59729:ba54b27d733d 59735:24bee1b11fce
    84   }
    84   }
    85 
    85 
    86   private case class Theory_Entry(name: Document.Node.Name, timing: Double, current: Boolean)
    86   private case class Theory_Entry(name: Document.Node.Name, timing: Double, current: Boolean)
    87     extends Entry
    87     extends Entry
    88   {
    88   {
    89     def print: String = Time.print_seconds(timing) + "s theory " + quote(name.theory)
    89     def print: String =
       
    90       Time.print_seconds(timing) + "s theory " + quote(name.theory)
    90     def follow(snapshot: Document.Snapshot) { PIDE.editor.goto_file(view, name.node) }
    91     def follow(snapshot: Document.Snapshot) { PIDE.editor.goto_file(view, name.node) }
    91   }
    92   }
    92 
    93 
    93   private case class Command_Entry(command: Command, timing: Double) extends Entry
    94   private case class Command_Entry(command: Command, timing: Double) extends Entry
    94   {
    95   {
    95     def print: String = "  " + Time.print_seconds(timing) + "s command " + quote(command.name)
    96     def print: String =
       
    97       "  " + Time.print_seconds(timing) + "s command " + quote(command.span.name)
    96     def follow(snapshot: Document.Snapshot)
    98     def follow(snapshot: Document.Snapshot)
    97     { PIDE.editor.hyperlink_command(snapshot, command).foreach(_.follow(view)) }
    99     { PIDE.editor.hyperlink_command(snapshot, command).foreach(_.follow(view)) }
    98   }
   100   }
    99 
   101 
   100 
   102