Skip to main content



      Home
Home » Modeling » MoDisco » Loading metamodel uri='MyModel' failed(i cant load the metamodel)
Loading metamodel uri='MyModel' failed [message #1697905] Tue, 09 June 2015 10:04 Go to next message
Eclipse UserFriend
Hi,

Through the option "Discovery->Discoverers->Discover Java Model from Java Project" i got the sourcemodel.ecore model, but when i consult the Window->Show View->Other->Metamodel Explorer in the Workspace item i see the following error.

http://fotos.subefotos.com/bc4da1f80cffb79be49a811de5d8bc79o.png

Please help me.

Regards.

Re: Loading metamodel uri='MyModel' failed [message #1697922 is a reply to message #1697905] Tue, 09 June 2015 11:28 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

The MoDisco Java Model Discoverer produces a model that conforms to the Java metamodel provided by MoDisco (cf. the MoDisco documentation from help.eclipse.org, "MoDisco User Guide -> Technologies -> Java -> Java discoverer").
Thus it should produces an ".xmi" file (i.e. a model) and not an ".ecore" file (i.e. a metamodel).
You should change your file extension to reflect this, and then you will be able to open the produced Java model with any EMF reflective editor, such as the MoDisco Model Browser for instance.
I hope this helps.
Re: Loading metamodel uri='MyModel' failed [message #1697969 is a reply to message #1697922] Tue, 09 June 2015 18:37 Go to previous messageGo to next message
Eclipse UserFriend
Hello Hugo,

Can i transform models (no metamodels) with QVTo? Change a plus sign for a minus sign for instance?

Thanks.
Re: Loading metamodel uri='MyModel' failed [message #1697972 is a reply to message #1697922] Tue, 09 June 2015 18:43 Go to previous messageGo to next message
Eclipse UserFriend
Referring to models that conforms to the MoDisco Java Metamodel.

Regards,
Re: Loading metamodel uri='MyModel' failed [message #1697996 is a reply to message #1697972] Wed, 10 June 2015 04:29 Go to previous messageGo to next message
Eclipse UserFriend
Of course, the purpose of model-to-model transformation languages is to transform any kinds of models.
So you can transform your Java model to any other model (that conform to any other metamodel).
You should take a look to the first part of this presentation that introduces the base concepts of Model Driven Engineering as well as of model transformation.
On a same topic, you should also take a look to the introduction of the ATL transformation language core concepts.
Re: Loading metamodel uri='MyModel' failed [message #1698039 is a reply to message #1697996] Wed, 10 June 2015 10:08 Go to previous message
Eclipse UserFriend
Hello Hugo,

I consulted the documentation that you provided me and some concepts are more cleare.

Basically that i need is define a java program, then generate a model for it, transform it and finally obtain the java program again.

I would make the transformation with QVTo.

What is the most appropriate way to do this according to you?

This work is for my grade thesis and i believe that you could help me much.

Best regards.
Previous Topic:MoDisco used/referenced in/from the ARTIST Open Source Release for Cloud migration
Next Topic:Custom Discoverer
Goto Forum:
  


Current Time: Sat May 24 21:11:17 EDT 2025

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

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

Back to the top