equal
deleted
inserted
replaced
27 GUI.dialog(null, "Isabelle", GUI.scrollable_text(Exn.message(exn))) |
27 GUI.dialog(null, "Isabelle", GUI.scrollable_text(Exn.message(exn))) |
28 system_dialog.return_code(Exn.return_code(exn, 2)) |
28 system_dialog.return_code(Exn.return_code(exn, 2)) |
29 system_dialog.join_exit |
29 system_dialog.join_exit |
30 } |
30 } |
31 |
31 |
32 def build |
32 def build() |
33 { |
33 { |
34 try { |
34 try { |
35 GUI.init_laf() |
35 GUI.init_laf() |
36 Isabelle_System.init() |
36 Isabelle_System.init() |
37 |
37 |
72 } |
72 } |
73 } |
73 } |
74 catch { case exn: Throwable => exit_error(exn) } |
74 catch { case exn: Throwable => exit_error(exn) } |
75 } |
75 } |
76 |
76 |
77 def start |
77 def start() |
78 { |
78 { |
79 val do_start = |
79 val do_start = |
80 { |
80 { |
81 try { |
81 try { |
82 /* settings directory */ |
82 /* settings directory */ |
159 system_dialog.return_code(Exn.Interrupt.return_code) |
159 system_dialog.return_code(Exn.Interrupt.return_code) |
160 system_dialog.join_exit |
160 system_dialog.join_exit |
161 } |
161 } |
162 } |
162 } |
163 |
163 |
164 build |
164 build() |
165 val rc = system_dialog.join |
165 val rc = system_dialog.join |
166 if (rc == 0) start else sys.exit(rc) |
166 if (rc == 0) start() else sys.exit(rc) |
167 } |
167 } |
168 |
168 |
169 |
169 |
170 |
170 |
171 /** Cygwin init (e.g. after extraction via 7zip) **/ |
171 /** Cygwin init (e.g. after extraction via 7zip) **/ |