src/Pure/System/gui_setup.scala
changeset 31844 3d5e51dbafe9
parent 31843 f02c6a43f1b3
child 31860 e49011bb85da
equal deleted inserted replaced
31843:f02c6a43f1b3 31844:3d5e51dbafe9
    27     title = "Isabelle setup"
    27     title = "Isabelle setup"
    28 
    28 
    29     // components
    29     // components
    30     val text = new TextArea {
    30     val text = new TextArea {
    31       editable = false
    31       editable = false
    32       columns = 20
    32       columns = 40
    33       rows = 10
    33       rows = 15
    34       xLayoutAlignment = 0.5
    34       xLayoutAlignment = 0.5
    35     }
    35     }
    36     val ok = new Button {
    36     val ok = new Button {
    37       text = "OK"
    37       text = "OK"
    38       xLayoutAlignment = 0.5
    38       xLayoutAlignment = 0.5
    41       contents += text
    41       contents += text
    42       contents += ok
    42       contents += ok
    43     }
    43     }
    44 
    44 
    45     // values
    45     // values
       
    46     if (Platform.is_windows) {
       
    47       text.append("Cygwin root: " + Cygwin.config()._1 + "\n")
       
    48     }
    46     Platform.defaults match {
    49     Platform.defaults match {
    47       case None =>
    50       case None =>
    48       case Some((name, None)) => text.append("platform: " + name + "\n")
    51       case Some((name, None)) => text.append("Platform: " + name + "\n")
    49       case Some((name1, Some(name2))) =>
    52       case Some((name1, Some(name2))) =>
    50         text.append("main platform: " + name2 + "\n")
    53         text.append("Main platform: " + name1 + "\n")
    51         text.append("alternative platform: " + name2 + "\n")
    54         text.append("Alternative platform: " + name2 + "\n")
    52     }
       
    53     if (Platform.is_windows) {
       
    54       text.append("Cygwin root: " + Cygwin.config()._1 + "\n")
       
    55     }
    55     }
    56 
    56 
    57     // reactions
    57     // reactions
    58     listenTo(ok)
    58     listenTo(ok)
    59     reactions += {
    59     reactions += {