src/Tools/jEdit/src/isabelle_options.scala
changeset 49355 7d1af0a6e797
parent 49354 65c6a1d62dbc
child 49524 68796a77c42b
equal deleted inserted replaced
49354:65c6a1d62dbc 49355:7d1af0a6e797
    56 {
    56 {
    57   // FIXME avoid hard-wired stuff
    57   // FIXME avoid hard-wired stuff
    58   private val predefined =
    58   private val predefined =
    59     (for {
    59     (for {
    60       (name, opt) <- Isabelle.options.value.options.toList
    60       (name, opt) <- Isabelle.options.value.options.toList
    61       if (name.startsWith("color_") && opt.section == "Rendering of Document Content")
    61       if (name.endsWith("_color") && opt.section == "Rendering of Document Content")
    62     } yield Isabelle.options.make_color_component(opt))
    62     } yield Isabelle.options.make_color_component(opt))
    63 
    63 
    64   assert(!predefined.isEmpty)
    64   assert(!predefined.isEmpty)
    65 
    65 
    66   protected val components = Isabelle.options.make_components(predefined, _ => false)
    66   protected val components = Isabelle.options.make_components(predefined, _ => false)