src/Tools/jEdit/src/theories_dockable.scala
changeset 52802 0b98561d0790
parent 52779 82707f95a783
child 52807 b859a180936b
equal deleted inserted replaced
52801:6f88e379aa3e 52802:0b98561d0790
    13 import scala.swing.{FlowPanel, Button, TextArea, Label, ListView, Alignment, ScrollPane, Component,
    13 import scala.swing.{FlowPanel, Button, TextArea, Label, ListView, Alignment, ScrollPane, Component,
    14   BoxPanel, Orientation, RadioButton, ButtonGroup}
    14   BoxPanel, Orientation, RadioButton, ButtonGroup}
    15 import scala.swing.event.{ButtonClicked, MouseClicked}
    15 import scala.swing.event.{ButtonClicked, MouseClicked}
    16 
    16 
    17 import java.lang.System
    17 import java.lang.System
    18 import java.awt.{BorderLayout, Graphics2D, Insets, Color}
    18 import java.awt.{BorderLayout, Graphics2D, Insets}
    19 import javax.swing.{JList, BorderFactory}
    19 import javax.swing.{JList, BorderFactory}
    20 import javax.swing.border.{BevelBorder, SoftBevelBorder, LineBorder}
    20 import javax.swing.border.{BevelBorder, SoftBevelBorder}
    21 
    21 
    22 import org.gjt.sp.jedit.{View, jEdit}
    22 import org.gjt.sp.jedit.{View, jEdit}
    23 
    23 
    24 
    24 
    25 class Theories_Dockable(view: View, position: String) extends Dockable(view, position)
    25 class Theories_Dockable(view: View, position: String) extends Dockable(view, position)
    66     private val b1 = button(PIDE.Execution_Range.ALL, "Check all theories (potentially slow)")
    66     private val b1 = button(PIDE.Execution_Range.ALL, "Check all theories (potentially slow)")
    67     private val b2 = button(PIDE.Execution_Range.NONE, "Check nothing")
    67     private val b2 = button(PIDE.Execution_Range.NONE, "Check nothing")
    68     private val b3 = button(PIDE.Execution_Range.VISIBLE, "Check visible parts of theories")
    68     private val b3 = button(PIDE.Execution_Range.VISIBLE, "Check visible parts of theories")
    69     private val group = new ButtonGroup(b1, b2, b3)
    69     private val group = new ButtonGroup(b1, b2, b3)
    70     contents ++= List(label, b1, b2, b3)
    70     contents ++= List(label, b1, b2, b3)
    71     border = new LineBorder(Color.GRAY)
    71     border = new SoftBevelBorder(BevelBorder.LOWERED)
    72 
    72 
    73     def load()
    73     def load()
    74     {
    74     {
    75       PIDE.execution_range() match {
    75       PIDE.execution_range() match {
    76         case PIDE.Execution_Range.ALL => group.select(b1)
    76         case PIDE.Execution_Range.ALL => group.select(b1)