equal
deleted
inserted
replaced
145 { |
145 { |
146 val icon = GUIUtilities.loadIcon(name) |
146 val icon = GUIUtilities.loadIcon(name) |
147 if (icon.getIconWidth < 0 || icon.getIconHeight < 0) |
147 if (icon.getIconWidth < 0 || icon.getIconHeight < 0) |
148 Log.log(Log.ERROR, icon, "Bad icon: " + name) |
148 Log.log(Log.ERROR, icon, "Bad icon: " + name) |
149 icon |
149 icon |
150 } |
|
151 |
|
152 |
|
153 /* check JVM */ |
|
154 |
|
155 def check_jvm() |
|
156 { |
|
157 if (!Platform.is_hotspot) { |
|
158 Library.warning_dialog(jEdit.getActiveView, "Bad Java Virtual Machine", |
|
159 "This is " + Platform.jvm_name, |
|
160 "Isabelle/jEdit requires Java Hotspot from Sun/Oracle/Apple!") |
|
161 } |
|
162 } |
150 } |
163 |
151 |
164 |
152 |
165 /* buffers */ |
153 /* buffers */ |
166 |
154 |
431 override def handleMessage(message: EBMessage) |
419 override def handleMessage(message: EBMessage) |
432 { |
420 { |
433 Swing_Thread.assert() |
421 Swing_Thread.assert() |
434 message match { |
422 message match { |
435 case msg: EditorStarted => |
423 case msg: EditorStarted => |
436 Isabelle.check_jvm() |
|
437 if (Isabelle.Boolean_Property("auto-start")) |
424 if (Isabelle.Boolean_Property("auto-start")) |
438 Isabelle.start_session() |
425 Isabelle.start_session() |
439 |
426 |
440 case msg: BufferUpdate |
427 case msg: BufferUpdate |
441 if msg.getWhat == BufferUpdate.LOADED => |
428 if msg.getWhat == BufferUpdate.LOADED => |