Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » passing arguments from Java to EOL
passing arguments from Java to EOL [message #1772681] Wed, 13 September 2017 19:22 Go to next message
Kanchan NAir is currently offline Kanchan NAirFriend
Messages: 8
Registered: July 2017
Junior Member
Hi,

I am trying to pass arguments from .java file to .eol file and wants .eol to use those parameter and do further operation.

If I use below code to pass parameter
Variable parameters = new Variable("messageIds", hashMapSet, EolCollectionType.Set);
module.getContext().getFrameStack().put(parameters);

I am not sure how .eol file is going to receive it.
I am calling .eol file programatically from java and not running through run configuration.

Is there any other way where arguments can be passed from java to .eol file.


Thanks,
Kanchan
Re: passing arguments from Java to EOL [message #1772719 is a reply to message #1772681] Thu, 14 September 2017 10:07 Go to previous message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 594
Registered: January 2010
Location: Birmingham, UK
Senior Member

That's pretty much what you should be doing, but you should call putGlobal(...) instead of just put(...). See here:

https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/tree/plugins/org.eclipse.epsilon.eol.dt/src/org/eclipse/epsilon/eol/dt/launching/EclipseContextManager.java#n151

Once you do this, you should be able to use that "messageIds" variable normally from inside your EOL file.

[Updated on: Thu, 14 September 2017 10:08]

Report message to a moderator

Previous Topic:How to store all root elements in a variable using EOL?
Next Topic:Invoking UMLUtil as Native Object fails
Goto Forum:
  


Current Time: Wed Apr 24 22:18:55 GMT 2024

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

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

Back to the top