22 |
|
|
23 |
package org.jsampler; |
package org.jsampler; |
24 |
|
|
|
import java.awt.event.ActionEvent; |
|
|
import java.awt.event.ActionListener; |
|
|
|
|
25 |
import java.io.InputStream; |
import java.io.InputStream; |
26 |
import java.io.IOException; |
import java.io.IOException; |
27 |
import java.io.OutputStream; |
import java.io.OutputStream; |
34 |
|
|
35 |
import java.util.logging.Level; |
import java.util.logging.Level; |
36 |
|
|
37 |
import javax.swing.SwingUtilities; |
import net.sf.juife.PDUtils; |
38 |
|
import net.sf.juife.event.GenericEvent; |
39 |
|
import net.sf.juife.event.GenericListener; |
40 |
import net.sf.juife.event.TaskEvent; |
import net.sf.juife.event.TaskEvent; |
41 |
import net.sf.juife.event.TaskListener; |
import net.sf.juife.event.TaskListener; |
42 |
|
|
86 |
/** Creates a new instance of <code>DefaultLSConsoleModel</code>. */ |
/** Creates a new instance of <code>DefaultLSConsoleModel</code>. */ |
87 |
public |
public |
88 |
DefaultLSConsoleModel() { |
DefaultLSConsoleModel() { |
89 |
CC.addReconnectListener(new ActionListener() { |
CC.addReconnectListener(new GenericListener() { |
90 |
public void |
public void |
91 |
actionPerformed(ActionEvent e) { reconnect(); } |
jobDone(GenericEvent e) { reconnect(); } |
92 |
}); |
}); |
93 |
|
|
94 |
lsConsoleThread.start(); |
lsConsoleThread.start(); |
378 |
return tmpVector.toArray(new String[tmpVector.size()]); |
return tmpVector.toArray(new String[tmpVector.size()]); |
379 |
} |
} |
380 |
|
|
|
@Override |
|
381 |
public void |
public void |
382 |
quit() { disconnect(); } |
quit() { disconnect(); } |
383 |
|
|
401 |
*/ |
*/ |
402 |
private void |
private void |
403 |
fireResponseReceived(final String response) { |
fireResponseReceived(final String response) { |
404 |
SwingUtilities.invokeLater(new Runnable() { |
PDUtils.runOnUiThread(new Runnable() { |
405 |
public void |
public void |
406 |
run() { |
run() { |
407 |
LSConsoleEvent e = new LSConsoleEvent(this, response); |
LSConsoleEvent e = new LSConsoleEvent(this, response); |