Skip to main content



      Home
Home » Modeling » Epsilon » passing arguments from Java to EOL
passing arguments from Java to EOL [message #1772681] Wed, 13 September 2017 15:22 Go to next message
Eclipse UserFriend
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 06:07 Go to previous message
Eclipse UserFriend
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 06:08] by 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: Sat Jul 12 22:41:16 EDT 2025

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

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

Back to the top