src/Pure/PIDE/editor.scala
changeset 83417 b51e4a526897
parent 82949 728762181377
child 83419 0ac8a8a3793b
equal deleted inserted replaced
83416:c7849fa2ece0 83417:b51e4a526897
    14     val none: Output = Output(defined = false)
    14     val none: Output = Output(defined = false)
    15     val init: Output = Output()
    15     val init: Output = Output()
    16   }
    16   }
    17 
    17 
    18   sealed case class Output(
    18   sealed case class Output(
       
    19     snapshot: Document.Snapshot = Document.Snapshot.init,
    19     results: Command.Results = Command.Results.empty,
    20     results: Command.Results = Command.Results.empty,
    20     messages: List[XML.Elem] = Nil,
    21     messages: List[XML.Elem] = Nil,
    21     defined: Boolean = true
    22     defined: Boolean = true
    22   )
    23   )
    23 }
    24 }
   136                     yield msg).partition(Protocol.is_state)
   137                     yield msg).partition(Protocol.is_state)
   137               }
   138               }
   138               val (urgent, regular) = other.partition(Protocol.is_urgent)
   139               val (urgent, regular) = other.partition(Protocol.is_urgent)
   139               urgent ::: (if (output_state()) states else Nil) ::: regular
   140               urgent ::: (if (output_state()) states else Nil) ::: regular
   140             }
   141             }
   141             Editor.Output(results = results, messages = messages)
   142             Editor.Output(snapshot = snapshot, results = results, messages = messages)
   142           }
   143           }
   143           else Editor.Output.none
   144           else Editor.Output.none
   144       }
   145       }
   145     }
   146     }
   146   }
   147   }