src/Tools/jEdit/src/jedit_resources.scala
changeset 60835 6512bb0b1ff4
parent 59691 f6ff19188842
child 60916 a6e2a667b0a8
equal deleted inserted replaced
60834:781f1168d31e 60835:6512bb0b1ff4
    18 import org.gjt.sp.jedit.io.{VFS, FileVFS, VFSManager}
    18 import org.gjt.sp.jedit.io.{VFS, FileVFS, VFSManager}
    19 import org.gjt.sp.jedit.MiscUtilities
    19 import org.gjt.sp.jedit.MiscUtilities
    20 import org.gjt.sp.jedit.{jEdit, View, Buffer}
    20 import org.gjt.sp.jedit.{jEdit, View, Buffer}
    21 import org.gjt.sp.jedit.bufferio.BufferIORequest
    21 import org.gjt.sp.jedit.bufferio.BufferIORequest
    22 
    22 
       
    23 
       
    24 object JEdit_Resources
       
    25 {
       
    26   val empty: JEdit_Resources =
       
    27     new JEdit_Resources(Set.empty, Map.empty, Outer_Syntax.empty)
       
    28 }
    23 
    29 
    24 class JEdit_Resources(
    30 class JEdit_Resources(
    25     loaded_theories: Set[String],
    31     loaded_theories: Set[String],
    26     known_theories: Map[String, Document.Node.Name],
    32     known_theories: Map[String, Document.Node.Name],
    27     base_syntax: Outer_Syntax)
    33     base_syntax: Outer_Syntax)
   117         } model.syntax_changed()
   123         } model.syntax_changed()
   118       }
   124       }
   119     if (change.deps_changed && PIDE.options.bool("jedit_auto_load")) PIDE.deps_changed()
   125     if (change.deps_changed && PIDE.options.bool("jedit_auto_load")) PIDE.deps_changed()
   120   }
   126   }
   121 }
   127 }
   122