Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Several different input models in EGX
Several different input models in EGX [message #1751881] Mon, 16 January 2017 13:09 Go to next message
Víctor López is currently offline Víctor LópezFriend
Messages: 22
Registered: June 2014
Junior Member
Hi all!,
I would like to have an EGX file where I have two input models: 1) a UML model and 2) a plain XML model.

Then I would like to have rules for both input models.
For the XML model in the transform declaration I write:

transform aBook : LM!t_book {

...}

Then inside the EGL files for that transformation I use also "LM!" before every type I use.
It works (being LM the alias of the XML model defined in the run configuration).

Nevertheless, it doesn't work for the UML model using the same approach.
Am I doing something wrong?

Best,

Víctor López
Re: Several different input models in EGX [message #1751912 is a reply to message #1751881] Mon, 16 January 2017 18:34 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Victor,

Could you please provide a minimal example [1] we can use to reproduce this?

Cheers,
Dimitris

[1] https://www.eclipse.org/epsilon/doc/articles/minimal-examples/
Re: Several different input models in EGX [message #1751920 is a reply to message #1751912] Mon, 16 January 2017 19:28 Go to previous messageGo to next message
Víctor López is currently offline Víctor LópezFriend
Messages: 22
Registered: June 2014
Junior Member
Dear Dimitris,
Please find attached a minimal example that illustrates my problem.
To run it I create a configuration with two input models. The first one is the tinyModel.uml attached with the alias UM. The second one is the XML library example with an alias LM.

When run, the XML model is processed perfectly, but the UML one doesn't. I guess I'm doing something wrong.

Using Eclipse Neon 1.a and Epsilon Interim 1.5.0.201612231209.

Best,

Víctor López

Dimitris Kolovos wrote on Mon, 16 January 2017 19:34
Hi Victor,

Could you please provide a minimal example [1] we can use to reproduce this?

Cheers,
Dimitris

[1] https://www.eclipse.org/epsilon/doc/articles/minimal-examples/

Re: Several different input models in EGX [message #1751927 is a reply to message #1751920] Mon, 16 January 2017 20:21 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Victor,

This works fine in my setup. Could you please double-check that you have selected "/MinimalExample2Models/tinyModel.uml" in the "Model file" field of your UML model configuration dialog? If this doesn't do the trick, please also share your stored run configuration (see the "Epsilon launch configurations" section of [1]) so that I can have another look.

Cheers,
Dimitris

[1] https://www.eclipse.org/epsilon/doc/articles/minimal-examples/
Re: Several different input models in EGX [message #1751928 is a reply to message #1751927] Mon, 16 January 2017 20:39 Go to previous message
Víctor López is currently offline Víctor LópezFriend
Messages: 22
Registered: June 2014
Junior Member
You are right!!!
The .di file was selected instead of the .uml one, I made the run configuration too quickly ...
Thanks so much!!!


Dimitris Kolovos wrote on Mon, 16 January 2017 21:21
Hi Victor,

This works fine in my setup. Could you please double-check that you have selected "/MinimalExample2Models/tinyModel.uml" in the "Model file" field of your UML model configuration dialog? If this doesn't do the trick, please also share your stored run configuration (see the "Epsilon launch configurations" section of [1]) so that I can have another look.

Cheers,
Dimitris

[1] https://www.eclipse.org/epsilon/doc/articles/minimal-examples/

Previous Topic:operation that return more than one value
Next Topic:nested if statements with else
Goto Forum:
  


Current Time: Thu Apr 25 12:04:45 GMT 2024

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

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

Back to the top