tuned;
authorwenzelm
Fri, 28 Oct 2022 16:25:44 +0200
changeset 76392 3fa81de0b6c5
parent 76391 6129e8cb140d
child 76393 f227ff7bff50
tuned;
src/Tools/jEdit/src/jedit_options.scala
--- a/src/Tools/jEdit/src/jedit_options.scala	Fri Oct 28 16:14:14 2022 +0200
+++ b/src/Tools/jEdit/src/jedit_options.scala	Fri Oct 28 16:25:44 2022 +0200
@@ -20,11 +20,6 @@
 
 
 object JEdit_Options {
-  /* sections */
-
-  val RENDERING_SECTION = "Rendering of Document Content"
-
-
   /* typed access and GUI components */
 
   class Access[A](access: Options.Access_Variable[A], val name: String) {
@@ -107,7 +102,6 @@
     }
   }
 
-
   class Isabelle_General_Options extends Isabelle_Options("isabelle-general") {
     val options: JEdit_Options = PIDE.options
 
@@ -120,12 +114,11 @@
         (for ((name, opt) <- options.value.opt_iterator if opt.public) yield name).toSet)
   }
 
-
   class Isabelle_Rendering_Options extends Isabelle_Options("isabelle-rendering") {
     private val predefined =
       (for {
         (name, opt) <- PIDE.options.value.opt_iterator
-        if (name.endsWith("_color") && opt.section == JEdit_Options.RENDERING_SECTION)
+        if name.endsWith("_color") && opt.section == "Rendering of Document Content"
       } yield PIDE.options.make_color_component(opt)).toList
 
     assert(predefined.nonEmpty)