src/Pure/PIDE/command.scala
changeset 83186 887f1eac24d1
parent 83185 47edc6384e7a
child 83210 9cc5d77d505c
equal deleted inserted replaced
83185:47edc6384e7a 83186:887f1eac24d1
   237   ) {
   237   ) {
   238     override def toString: String = "Command.State(" + command + ")"
   238     override def toString: String = "Command.State(" + command + ")"
   239     override def hashCode(): Int = ???
   239     override def hashCode(): Int = ???
   240     override def equals(obj: Any): Boolean = ???
   240     override def equals(obj: Any): Boolean = ???
   241 
   241 
   242     lazy val timing: Timing =
       
   243       status.foldLeft(Timing.zero) {
       
   244         case (t0, Markup.Timing(t)) => t0 + t
       
   245         case (t0, _) => t0
       
   246       }
       
   247 
       
   248     def initialized: Boolean = document_status.initialized
   242     def initialized: Boolean = document_status.initialized
   249     def consolidating: Boolean = document_status.consolidating
   243     def consolidating: Boolean = document_status.consolidating
   250     def consolidated: Boolean = document_status.consolidated
   244     def consolidated: Boolean = document_status.consolidated
   251     def maybe_consolidated: Boolean = document_status.maybe_consolidated
   245     def maybe_consolidated: Boolean = document_status.maybe_consolidated
       
   246     def timing: Timing = document_status.timing
   252 
   247 
   253     def markup(index: Markup_Index): Markup_Tree = markups(index)
   248     def markup(index: Markup_Index): Markup_Tree = markups(index)
   254 
   249 
   255     def redirect(other_command: Command): Option[State] = {
   250     def redirect(other_command: Command): Option[State] = {
   256       val markups1 = markups.redirect(other_command.id)
   251       val markups1 = markups.redirect(other_command.id)