src/Tools/jEdit/src/jedit_options.scala
changeset 75393 87ebf5a50283
parent 73340 0ffcad1f6130
child 75827 4920ebbde486
--- a/src/Tools/jEdit/src/jedit_options.scala	Fri Apr 01 11:51:42 2022 +0200
+++ b/src/Tools/jEdit/src/jedit_options.scala	Fri Apr 01 17:06:10 2022 +0200
@@ -19,19 +19,16 @@
 import org.gjt.sp.jedit.gui.ColorWellButton
 
 
-trait Option_Component extends Component
-{
+trait Option_Component extends Component {
   val title: String
   def load(): Unit
   def save(): Unit
 }
 
-object JEdit_Options
-{
+object JEdit_Options {
   val RENDERING_SECTION = "Rendering of Document Content"
 
-  class Check_Box(name: String, label: String, description: String) extends CheckBox(label)
-  {
+  class Check_Box(name: String, label: String, description: String) extends CheckBox(label) {
     tooltip = description
     reactions += { case ButtonClicked(_) => update(selected) }
 
@@ -49,12 +46,10 @@
   }
 }
 
-class JEdit_Options(init_options: Options) extends Options_Variable(init_options)
-{
+class JEdit_Options(init_options: Options) extends Options_Variable(init_options) {
   def color_value(s: String): Color = Color_Value(string(s))
 
-  def make_color_component(opt: Options.Opt): Option_Component =
-  {
+  def make_color_component(opt: Options.Opt): Option_Component = {
     GUI_Thread.require {}
 
     val opt_name = opt.name
@@ -72,8 +67,7 @@
     component
   }
 
-  def make_component(opt: Options.Opt): Option_Component =
-  {
+  def make_component(opt: Options.Opt): Option_Component = {
     GUI_Thread.require {}
 
     val opt_name = opt.name
@@ -120,9 +114,10 @@
     component
   }
 
-  def make_components(predefined: List[Option_Component], filter: String => Boolean)
-    : List[(String, List[Option_Component])] =
-  {
+  def make_components(
+    predefined: List[Option_Component],
+    filter: String => Boolean
+  ) : List[(String, List[Option_Component])] = {
     def mk_component(opt: Options.Opt): List[Option_Component] =
       predefined.find(opt.name == _.name) match {
         case Some(c) => List(c)