src/Pure/Thy/thy_resources.scala
changeset 67054 9498b7522a99
child 67056 e35ae3eeec93
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/Pure/Thy/thy_resources.scala	Sun Nov 12 13:19:00 2017 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +/*  Title:      Pure/Thy/thy_resources.scala
     1.5 +    Author:     Makarius
     1.6 +
     1.7 +PIDE resources for theory files.
     1.8 +*/
     1.9 +
    1.10 +package isabelle
    1.11 +
    1.12 +
    1.13 +object Thy_Resources
    1.14 +{
    1.15 +  /* internal state */
    1.16 +
    1.17 +  sealed case class State(
    1.18 +    models: Map[Document.Node.Name, Thy_Document_Model] = Map.empty)
    1.19 +}
    1.20 +
    1.21 +class Thy_Resources(
    1.22 +    val options: Options,
    1.23 +    session_base: Sessions.Base,
    1.24 +    log: Logger = No_Logger)
    1.25 +  extends Resources(session_base, log = log)
    1.26 +{
    1.27 +  private val state = Synchronized(Thy_Resources.State())
    1.28 +}