src/Pure/Thy/thy_resources.scala
author wenzelm
Sun, 12 Nov 2017 13:19:00 +0100
changeset 67054 9498b7522a99
child 67056 e35ae3eeec93
permissions -rw-r--r--
PIDE resources for theory files;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
67054
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
     1
/*  Title:      Pure/Thy/thy_resources.scala
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
     2
    Author:     Makarius
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
     3
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
     4
PIDE resources for theory files.
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
     5
*/
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
     6
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
     7
package isabelle
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
     8
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
     9
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
    10
object Thy_Resources
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
    11
{
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
    12
  /* internal state */
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
    13
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
    14
  sealed case class State(
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
    15
    models: Map[Document.Node.Name, Thy_Document_Model] = Map.empty)
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
    16
}
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
    17
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
    18
class Thy_Resources(
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
    19
    val options: Options,
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
    20
    session_base: Sessions.Base,
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
    21
    log: Logger = No_Logger)
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
    22
  extends Resources(session_base, log = log)
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
    23
{
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
    24
  private val state = Synchronized(Thy_Resources.State())
9498b7522a99 PIDE resources for theory files;
wenzelm
parents:
diff changeset
    25
}