PIDE resources for theory files;
authorwenzelm
Sun Nov 12 13:19:00 2017 +0100 (18 months ago)
changeset 670549498b7522a99
parent 67053 57c37ee49c39
child 67055 383b902fe2b9
PIDE resources for theory files;
src/Pure/Thy/thy_resources.scala
src/Pure/build-jars
     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 +}
     2.1 --- a/src/Pure/build-jars	Sun Nov 12 12:55:10 2017 +0100
     2.2 +++ b/src/Pure/build-jars	Sun Nov 12 13:19:00 2017 +0100
     2.3 @@ -130,6 +130,7 @@
     2.4    Thy/sessions.scala
     2.5    Thy/thy_document_model.scala
     2.6    Thy/thy_header.scala
     2.7 +  Thy/thy_resources.scala
     2.8    Thy/thy_syntax.scala
     2.9    Tools/bibtex.scala
    2.10    Tools/build.scala