call java tool from epsilon [message #1752108] |
Wed, 18 January 2017 16:32  |
Eclipse User |
|
|
|
Hi,
I followed the example that is available here https://eclipse.org/epsilon/doc/articles/call-java-from-epsilon/
It was working fine but I don't want to run the tool as an eclipse application then create a new EOL file because I am already have an EOL file in the Epsilon environment and I want that EOL to call the tool that I have created like the above tutorial .I tried to search the tools but I couldn't find it there .What should I do to allow my current EOL to call the tool that I created instead of creating a new EOL file .I hope that I have explained the problem clearly .Attached screenshot for what I have.
Thanks,
Taghreed
[Updated on: Wed, 18 January 2017 17:07] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: call java tool from epsilon [message #1798419 is a reply to message #1798416] |
Sun, 18 November 2018 01:29   |
Eclipse User |
|
|
|
Hi Dimitris,
To call the `print` method, I have the same error as you. Without declaring `pre` as a string, the error is disappeared but the output in the console is wrong. It prints `org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1eff8d2a (eClass: org.eclipse.emf.ecore.impl.EClassImpl@329e6d22 (name: ExpressionStatement) (instanceClassName: null) (abstract: false, interface: false))org.eclipse.epsilon.eol.visitor.printer.impl.EolPrinter@2954f38dorg.eclipse.epsilon.eol.visitor.printer.impl.EolPrinter@2954f38d
` while I expect to have `"Running ETL".println();` . The reason is it cannot detect the methods of `EolPrinter` class of `Haetae`. It confuses it with the `print` method of eol, this is why it does not give the `method not found` error. If you print something in the `print` method of the EolPrinter class, you can see nothing is printed in the console. It does not go through the methods of EolPrinter class, it only goes through the constructor of this class. If you call other methods of EolPrinter, such as the bellow code, you can see `the method not found` error.
var model2code : new Native("org.eclipse.epsilon.eol.visitor.printer.impl.EolPrinter");
model2code.run(odel2code.print(ETL!ETLModule.all.first().preBlocks.first.body.statements.first)).println();
Best Regards,
Banafsheh
[Updated on: Sun, 18 November 2018 01:32] by Moderator
|
|
|
Re: call java tool from epsilon [message #1798420 is a reply to message #1798419] |
Sun, 18 November 2018 02:10  |
Eclipse User |
|
|
|
Hi Dimitris,
It seems it is related to `Haetae`. I have tested it with the previous version of `Haetae` and it works well. I think the previous version of this tool supports for running it via EOL execution engine (it doesn't support for standalone) and the current version supports for standalone and not support for eol engine. As I finally want to use it via standalone it doesn't matter to me.
Sorry for any inconvenience,
Best Regards,
Banafsheh
|
|
|
Powered by
FUDForum. Page generated in 0.05543 seconds