--- a/lib/classes/isabelle/IsabelleDemo.java Sat Dec 15 21:26:14 2007 +0100
+++ b/lib/classes/isabelle/IsabelleDemo.java Sat Dec 15 21:52:49 2007 +0100
@@ -8,32 +8,21 @@
package isabelle;
public class IsabelleDemo extends IsabelleProcess {
-
- /* console thread */
-
- private class ConsoleThread extends Thread
- {
- public void run()
- {
- IsabelleProcess.Result result = null;
- while (result == null || result.kind != IsabelleProcess.Result.Kind.EXIT) {
- try {
- result = results.take();
- System.err.println(result.toString());
- } catch (InterruptedException ex) { }
- }
- System.err.println("Console thread terminated");
- }
- }
- private ConsoleThread consoleThread;
-
-
- /* create process */
-
public IsabelleDemo(String logic) throws IsabelleProcessException
{
super(logic);
- consoleThread = new ConsoleThread();
- consoleThread.start();
+ new Thread (new Runnable () {
+ public void run()
+ {
+ IsabelleProcess.Result result = null;
+ while (result == null || result.kind != IsabelleProcess.Result.Kind.EXIT) {
+ try {
+ result = results.take();
+ System.err.println(result.toString());
+ } catch (InterruptedException ex) { }
+ }
+ System.err.println("Console thread terminated");
+ }
+ }).start();
}
}