Resource Menu


posted by Jourdain Sebastien at Jan 15, 2008 10:31 AM
Quote
Yes but you should call your class JRosettaBeanShellInterpreter instead of Fake…
posted by Erwan at Jan 15, 2008 9:53 AM
Quote
Hi,

I do this :

public class FakeGenericInterpreter ....

Interpreter interpreter ;

public FakeGenericInterpreter (){ interpreter = new Interpreter();

}

public Object eval(String script) throws ScriptException {

try { return interpreter.eval(script); } catch (EvalError e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; }

Am I right ?

posted by Jourdain Sebastien at Jan 15, 2008 9:16 AM
Quote
For your beanshell interpreter you will need to create your own class and implements GenericInterpreter. Then in you configuration file, you will have to give the full name of this new class instead of FakeGenericInterpreter.

Same thing for FakeDictionnaryCompletionManager, you should not extend it but implement the interface CompletionManager.

posted by erwan at Jan 15, 2008 9:07 AM
Quote
Hi,

The package structure is done (also xml). I have now some questions :

Where set my beanshell interpreter ? In a constructor for FakeGenericInterpreter ?

I found a class FakeDictionnaryCompletionManager I need to extend it also no ?

Thanks

R1.