Calling EOL from Java [message #572036] |
Fri, 31 July 2009 13:52 |
No real name Messages: 92 Registered: July 2009 |
Member |
|
|
Hi all,
I'm currently playing with running Epsilon (specifically an EOL file) from
Java, using the org.eclipse.epsilon.examples.standalone examples provided
by Epsilon as a starting point, and I've just come into a little stumbling
point.
I find that when I call a specific EOL operation (as per the example in
org.eclipse.epsilon.examples.standalone.eol), it successfully executes
only when the EOL operation definition does not make calls to other EOL
operations. A code snippet is below:
-- overriden method of EpsilonStandaloneExample in
org.eclipse.epsilon.examples.standalone
protected Object execute(IEolExecutableModule module) throws
EolRuntimeException {
...
// get third operation defined in the EOL file, and execute it
EolOperation operation = module.getDeclaredOperations().get(3);
operation.execute(null, parameters, module.getContext());
...
}
Am I doing something wrong or I need to somehow explicitly load all used
operations first?
Any pointers would be greatly appreciated.
Best,
Edd
|
|
|
Powered by
FUDForum. Page generated in 0.03547 seconds