Horus Doc || Java GUI Reference || Doxygen's quick Index  

IDLScriptShell Class Reference

Inheritance diagram for IDLScriptShell::

HistoryShell StubListener List of all members.

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)

Constructor & Destructor Documentation

IDLScriptShell::IDLScriptShell   [inline]
 

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 }


Member Function Documentation

void IDLScriptShell::run   [inline]
 

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 }

void IDLScriptShell::setGuard StubRepositoryGuard    g [inline]
 

00064 {
00065     _guard = g;
00066 }

void IDLScriptShell::setGUI String    name,
Object    gui
[inline]
 

00069 {
00070     _scope.setGUI(name, gui);
00071 }

void IDLScriptShell::stubAdded String    intfId,
String    name,
Object    stub
[inline]
 

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 }

void IDLScriptShell::stubRemoved String    intfId,
String    name
[inline]
 

Reimplemented from StubListener.

00083 {
00084     _scope.removeStub(intfId, name);
00085 }


The documentation for this class was generated from the following file:
Generated on Mon Jan 27 15:11:20 2003 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001