Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Unable to run an EGL file based on a UML model
Unable to run an EGL file based on a UML model [message #937719] Tue, 09 October 2012 07:56 Go to next message
Patricia Fernández is currently offline Patricia FernándezFriend
Messages: 41
Registered: October 2012
Member
Hello,

I created an UML diagram using MagicDraw and exported it as Eclipse UML2 (3.x). I added those generated files to my Eclipse project.

Now I've created a file called Example.egl:
[% for (c in Class.all) { %]
[%=c.name%]
[% } %]


To execute it, I did the following: Run configurations > EGL Template > Name: Example
In Models' tab > Add > EMF Model > Name: Example / Model file: Example.uml and the Meta-Model is put by default (as I unchecked the meta-model is file-based option).

But when I press Run, it gives me an Type 'Class' not found error.

Any ideas how to solve it?

Thanks for the help.
Patricia.

[Updated on: Tue, 09 October 2012 08:09]

Report message to a moderator

Re: Unable to run an EGL file based on a UML model [message #937724 is a reply to message #937719] Tue, 09 October 2012 08:01 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 911
Registered: July 2009
Senior Member
Hi Patricia,

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

Cheers,
Dimitris

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

Re: Unable to run an EGL file based on a UML model [message #937737 is a reply to message #937724] Tue, 09 October 2012 08:11 Go to previous messageGo to next message
Patricia Fernández is currently offline Patricia FernándezFriend
Messages: 41
Registered: October 2012
Member
Dimitris Kolovos wrote on Tue, 09 October 2012 04:01
Hi Patricia,

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

Cheers,
Dimitris

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



Hi Dimitris,

I'm new here sorry. Just added the .uml, .egl and the project to my post.

Also if needed my Epsilon version is:
Quote:
Epsilon Core (Incubation) 0.9.1.201107251201 org.eclipse.epsilon.feature.feature.group Eclipse.org


Thanks.
Re: Unable to run an EGL file based on a UML model [message #937748 is a reply to message #937737] Tue, 09 October 2012 08:20 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 911
Registered: July 2009
Senior Member
Hi Patricia,

The problem appears to be that the Ejemplo.uml refers to another Magic Draw profile UML model (see attached screenshot) which does not exist.

Cheers,
Dimitris
Re: Unable to run an EGL file based on a UML model [message #937759 is a reply to message #937748] Tue, 09 October 2012 08:29 Go to previous messageGo to next message
Patricia Fernández is currently offline Patricia FernándezFriend
Messages: 41
Registered: October 2012
Member
Dimitris Kolovos wrote on Tue, 09 October 2012 04:20
Hi Patricia,

The problem appears to be that the Ejemplo.uml refers to another Magic Draw profile UML model (see attached screenshot) which does not exist.

Cheers,
Dimitris


When I exported the UML model I actually got those files that don't exist for you. I deleted them from the project because I thought they weren't necessary, and it doesn't give me that error.
I attach the project with those files on it. Sorry for the inconvenience.
  • Attachment: Example.zip
    (Size: 499.78KB, Downloaded 108 times)
Re: Unable to run an EGL file based on a UML model [message #937776 is a reply to message #937759] Tue, 09 October 2012 08:47 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 911
Registered: July 2009
Senior Member
Hi Patricia,

Thanks. In the model configuration dialog, you'll need to keep only the main UML metamodel URI (see attached screenshot) and then it should work.

Cheers,
Dimitris
Re: Unable to run an EGL file based on a UML model [message #937780 is a reply to message #937776] Tue, 09 October 2012 08:51 Go to previous message
Patricia Fernández is currently offline Patricia FernándezFriend
Messages: 41
Registered: October 2012
Member
Dimitris Kolovos wrote on Tue, 09 October 2012 04:47
Hi Patricia,

Thanks. In the model configuration dialog, you'll need to keep only the main UML metamodel URI (see attached screenshot) and then it should work.

Cheers,
Dimitris


Hi Dimistris,

Thank you so much. Problem solved!
Previous Topic:[EOL] Model Loading Errors
Next Topic:Using Epsilon for model refinement/update
Goto Forum:
  


Current Time: Sun Nov 23 00:06:10 GMT 2014

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

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