Inheritance diagram for IDLScriptShell::

Public Methods | |
| IDLScriptShell () | |
| void | run () |
| void | setGuard (StubRepositoryGuard g) |
| void | setGUI (String name, Object gui) |
| void | stubAdded (String intfId, String name, Object stub) |
| void | stubRemoved (String intfId, String name) |
|
|
00027 {
00028 super();
00029
00030 InputStream input = getInputStream();
00031 PrintStream output = new PrintStream(getOutputStream(), true);
00032
00033 _guard = null;
00034
00035 // we create the interpreter here, and not in createInterpreter()
00036 // Because maybe some stubs will be added before the Thread starts
00037
00038 try {
00039 _interpreter = new HxShellInterpreter(input, output);
00040 }catch(JISError e) {
00041 _interpreter = null;
00042 _error = e;
00043 }
00044
00045 new Thread(this).start();
00046
00047 setPreferredSize(new java.awt.Dimension(450, 300));
00048 }
|
|
|
00051 {
00052 OSH sh = new OSH() {
00053 public OSInterpreter createInterpreter(String[] args) throws JISError
00054 {
00055 if(_interpreter == null) throw _error;
00056
00057 return _interpreter;
00058 }
00059 };
00060 sh.interprete(new String[0]);
00061 }
|
|
|
00064 {
00065 _guard = g;
00066 }
|
|
||||||||||||
|
00069 {
00070 _scope.setGUI(name, gui);
00071 }
|
|
||||||||||||||||
|
Reimplemented from StubListener.
00075 {
00076 // Maybe the thread that runs the interpreter has not started yet
00077 // It doen't mather because the interpreter has been created already
00078 _scope.addStub(intfId, name, stub);
00079 }
|
|
||||||||||||
|
Reimplemented from StubListener.
00083 {
00084 _scope.removeStub(intfId, name);
00085 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001