Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » call java tool from epsilon(call java tool from epsilon)
call java tool from epsilon [message #1752108] Wed, 18 January 2017 21:32 Go to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 145
Registered: October 2014
Senior Member
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 22:07]

Report message to a moderator

Re: call java tool from epsilon [message #1752148 is a reply to message #1752108] Thu, 19 January 2017 09:24 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 470
Registered: January 2010
Senior Member
Tools are contributed by plugins, so you need to have it installed in your Eclipse to use it (hence why you have to run a nested Eclipse application if you're using it from source).

You could try exporting the tool as a deployable plugin (using File > Export...), placing the .jar file inside the dropins folder of your Eclipse installation and then restarting Eclipse. You would need to redo this every time you change the tool, however.
Re: call java tool from epsilon [message #1752295 is a reply to message #1752148] Fri, 20 January 2017 16:58 Go to previous messageGo to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 145
Registered: October 2014
Senior Member
Hi Antonio,
Thanks .
Re: call java tool from epsilon [message #1765113 is a reply to message #1752295] Tue, 06 June 2017 18:40 Go to previous messageGo to next message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 261
Registered: July 2016
Senior Member
Hi,

I have the same question.
In my EOL program, I need to call EMFtoCSP [1]. How should I do it?

I installed EMFtoCSP but there is no related tool in my eclipse.
I also imported all the files in its plugin folder [2] to eclipse, change their JRE from 1.6 to 1.8, right click on one of them->Export-> Jar file-> select all of them->save, then I copy the saved file in the eclipse dropins folder. However, there is no related tools in eclipse.

[1]. https://github.com/SOM-Research/EMFtoCSP
[2]. https://github.com/SOM-Research/EMFtoCSP/tree/master/plugins
Re: call java tool from epsilon [message #1765256 is a reply to message #1765113] Wed, 07 June 2017 21:01 Go to previous messageGo to next message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 261
Registered: July 2016
Senior Member
cannot anyone help me in this regard?
Re: call java tool from epsilon [message #1765257 is a reply to message #1765113] Wed, 07 June 2017 21:04 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1487
Registered: July 2009
Location: York, UK
Senior Member

Hi,

You need to export as "Deployable Plugins and Fragments" instead. Until you get the intended functionality to work as expected, an easier and faster way to run/test your plugin would be to right-click on it in the Project Explorer and select Run As -> Eclipse Application. This will launch a new instance of Eclipse which contains whatever plugins you have in your first instance + running copies of any plugin projects you have in your workspace.

Cheers,
Dimitris

Cheers,
Dimitris
Re: call java tool from epsilon [message #1765408 is a reply to message #1765257] Fri, 09 June 2017 09:33 Go to previous messageGo to next message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 261
Registered: July 2016
Senior Member
Thank you. I can see the tool when run plugin as eclipse application, but When I export it as "Deployable Plugins and Fragments" it is still not shown.

As another question, In your opinion, which constraint solver ( USE, EMFtoCSP, etc.) is more appropriate for Epsilon programs?

Due to the fact that e.g., in "FamiliestoPersons" program we have the constraint "Member.familyfather.isDefined()" which is not pure OCL to fed to the constraint solver, do you know any work that use constraint solver for epsilon programs?
Re: call java tool from epsilon [message #1765410 is a reply to message #1765408] Fri, 09 June 2017 09:43 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1487
Registered: July 2009
Location: York, UK
Senior Member

> Thank you. I can see the tool when run plugin as eclipse application, but When I export it as "Deployable Plugins and Fragments" it is still not shown.

You may want to have a look at the Build tab of your MANIFEST.mf and make sure that all required artefacts are bundled in the exported plugin.

> As another question, In your opinion, which constraint solver ( USE, EMFtoCSP, etc.) is more appropriate for Epsilon programs?

I haven't used constraint solvers enough myself, but I've heard good things from peers I trust about USE.

Cheers,
Dimitris
Re: call java tool from epsilon [message #1766522 is a reply to message #1765410] Thu, 22 June 2017 15:22 Go to previous messageGo to next message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 261
Registered: July 2016
Senior Member
Thank you very much.

Dimitris Kolovos wrote on Fri, 09 June 2017 09:43

You may want to have a look at the Build tab of your MANIFEST.mf and make sure that all required artefacts are bundled in the exported plugin.


I don't have a Build tab in my MANIFEST.mf. e.g., I want to export this [1] plugin of haetae.

[1]. https://github.com/epsilonlabs/haetae/tree/master/org.eclipse.epsilon.haetae.eol.metamodel.visitor.printer

[Updated on: Thu, 22 June 2017 15:23]

Report message to a moderator

Re: call java tool from epsilon [message #1766535 is a reply to message #1766522] Thu, 22 June 2017 18:30 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1487
Registered: July 2009
Location: York, UK
Senior Member

Hi,

You can add a build.properties file like [1] at the root level of the plugin and the "Build" tab should appear in your manifest editor. As this question seems to be about Haetae, I'd suggest creating an issue at Haetae's GitHub project.

Cheers,
Dimitris

[1] https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/tree/plugins/org.eclipse.epsilon.eol.engine/build.properties
Previous Topic:refImmediateComposite in ETL
Next Topic:auto-completion and global variables in EGL/EGX?
Goto Forum:
  


Current Time: Fri Nov 24 01:54:17 GMT 2017

Powered by FUDForum. Page generated in 0.01955 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software