1 /* Title: Pure/System/gui_setup.scala
4 GUI for basic system setup.
9 import javax.swing.UIManager
12 import scala.swing.event._
15 object GUI_Setup extends GUIApplication
17 def main(args: Array[String]) =
20 UIManager.setLookAndFeel(Platform.look_and_feel)
26 def top = new MainFrame {
27 title = "Isabelle setup"
30 val text = new TextArea {
34 xLayoutAlignment = 0.5
38 xLayoutAlignment = 0.5
40 contents = new BoxPanel(Orientation.Vertical) {
46 text.append("JVM platform: " + Platform.jvm_platform + "\n")
47 if (Platform.is_windows)
48 text.append("Cygwin root: " + Cygwin.check_root() + "\n")
50 val isabelle_system = new Isabelle_System
51 text.append("ML platform: " + isabelle_system.getenv("ML_PLATFORM") + "\n")
52 text.append("Isabelle platform: " + isabelle_system.getenv("ISABELLE_PLATFORM") + "\n")
53 val platform64 = isabelle_system.getenv("ISABELLE_PLATFORM64")
54 if (platform64 != "") text.append("Isabelle platform (64 bit): " + platform64 + "\n")
55 text.append("Isabelle home: " + isabelle_system.getenv("ISABELLE_HOME") + "\n")
56 text.append("Isabelle java: " + isabelle_system.this_java() + "\n")
58 case e: RuntimeException => text.append(e.getMessage + "\n")
64 case ButtonClicked(`ok`) => System.exit(0)