Log.log(e);
}
};
}.start();
RhinoEclipseProcess process = new RhinoEclipseProcess(0, 0);
JSConsoleCommunication comm = new JSConsoleCommunication(unusedPorts[0], process, unusedPorts[1]);
ICallback<Object, Tuple<String, String>> onContentsReceived = new ICallback<Object, Tuple<String, String>>() {
public Object call(Tuple<String, String> arg) {
return null;
}
};
ICallback<Object, InterpreterResponse> onResponseReceived = new ICallback<Object, InterpreterResponse>() {
public Object call(InterpreterResponse arg) {
return null;
}
};
comm.hello(new NullProgressMonitor());
comm.execInterpreter("var a = 10;", onResponseReceived, onContentsReceived);
comm.getCompletions("var a = 10;", "a", 5);
comm.getDescription("a");
comm.close();
}