src/Tools/jEdit/src/jedit/option_pane.scala
changeset 34760 dc7f5e0d9d27
parent 34759 bfea7839d9e1
child 34761 0ad6d8372f9d
     1.1 --- a/src/Tools/jEdit/src/jedit/option_pane.scala	Tue Dec 08 14:49:01 2009 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,43 +0,0 @@
     1.4 -/*
     1.5 - * Editor pane for plugin options
     1.6 - *
     1.7 - * @author Johannes Hölzl, TU Munich
     1.8 - */
     1.9 -
    1.10 -package isabelle.jedit
    1.11 -
    1.12 -import javax.swing.{JComboBox, JSpinner}
    1.13 -
    1.14 -import org.gjt.sp.jedit.AbstractOptionPane
    1.15 -
    1.16 -
    1.17 -class OptionPane extends AbstractOptionPane("isabelle")
    1.18 -{
    1.19 -  private val logic_name = new JComboBox()
    1.20 -  private val font_size = new JSpinner()
    1.21 -
    1.22 -  override def _init()
    1.23 -  {
    1.24 -    addComponent(Isabelle.Property("logic.title"), {
    1.25 -      for (name <- Isabelle.system.find_logics()) {
    1.26 -        logic_name.addItem(name)
    1.27 -        if (name == Isabelle.Property("logic"))
    1.28 -          logic_name.setSelectedItem(name)
    1.29 -      }
    1.30 -      logic_name
    1.31 -    })
    1.32 -    addComponent(Isabelle.Property("font-size.title"), {
    1.33 -      font_size.setValue(Isabelle.Int_Property("font-size"))
    1.34 -      font_size
    1.35 -    })
    1.36 -  }
    1.37 -
    1.38 -  override def _save()
    1.39 -  {
    1.40 -    val logic = logic_name.getSelectedItem.asInstanceOf[String]
    1.41 -    Isabelle.Property("logic") = logic
    1.42 -
    1.43 -    val size = font_size.getValue().asInstanceOf[Int]
    1.44 -    Isabelle.Int_Property("font-size") = size
    1.45 -  }
    1.46 -}