src/Tools/jEdit/src/isabelle_options.scala
changeset 50205 788c8263e634
parent 50190 0d7f0d8fd63b
child 50255 d0ec1f0d1d7d
equal deleted inserted replaced
50204:daeb1674fb91 50205:788c8263e634
    45       "jedit_tooltip_font_scale", "jedit_symbols_search_limit", "jedit_tooltip_margin",
    45       "jedit_tooltip_font_scale", "jedit_symbols_search_limit", "jedit_tooltip_margin",
    46       "threads", "threads_trace", "parallel_proofs", "parallel_proofs_threshold",
    46       "threads", "threads_trace", "parallel_proofs", "parallel_proofs_threshold",
    47       "editor_load_delay", "editor_input_delay", "editor_output_delay", "editor_reparse_limit",
    47       "editor_load_delay", "editor_input_delay", "editor_output_delay", "editor_reparse_limit",
    48       "editor_tracing_limit", "editor_update_delay")
    48       "editor_tracing_limit", "editor_update_delay")
    49 
    49 
    50   relevant_options.foreach(Isabelle.options.value.check_name _)
    50   relevant_options.foreach(PIDE.options.value.check_name _)
    51 
    51 
    52   protected val components =
    52   protected val components =
    53     Isabelle.options.make_components(List(Isabelle_Logic.logic_selector(false)), relevant_options)
    53     PIDE.options.make_components(List(Isabelle_Logic.logic_selector(false)), relevant_options)
    54 }
    54 }
    55 
    55 
    56 
    56 
    57 class Isabelle_Options2 extends Isabelle_Options("isabelle-rendering")
    57 class Isabelle_Options2 extends Isabelle_Options("isabelle-rendering")
    58 {
    58 {
    59   // FIXME avoid hard-wired stuff
    59   // FIXME avoid hard-wired stuff
    60   private val predefined =
    60   private val predefined =
    61     (for {
    61     (for {
    62       (name, opt) <- Isabelle.options.value.options.toList
    62       (name, opt) <- PIDE.options.value.options.toList
    63       if (name.endsWith("_color") && opt.section == "Rendering of Document Content")
    63       if (name.endsWith("_color") && opt.section == "Rendering of Document Content")
    64     } yield Isabelle.options.make_color_component(opt))
    64     } yield PIDE.options.make_color_component(opt))
    65 
    65 
    66   assert(!predefined.isEmpty)
    66   assert(!predefined.isEmpty)
    67 
    67 
    68   protected val components = Isabelle.options.make_components(predefined, _ => false)
    68   protected val components = PIDE.options.make_components(predefined, _ => false)
    69 }
    69 }
    70 
    70