Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] EMF Resource
[ATL] EMF Resource [message #89397] Fri, 29 August 2008 15:14 Go to next message
Eclipse UserFriend
Hi all,

I'm trying to load objects using a EMF Resource into a model. I use the
Model class from EMF-VM. My problem is that when i try to instantiate a
Model via the constructor Model(metamodel, resource) and use it in an ATL
transformation, this latter seems to see the model as empty.
But when i create a Model by loading a file from the filesystem, the
transformation goes well. So what is the best way for loading a Model from
an EMF Resource ?

Regards,
Guillaume
Re: [ATL] EMF Resource [message #89442 is a reply to message #89397] Sat, 30 August 2008 16:18 Go to previous message
Eclipse UserFriend
Hi,

You should use the ASMModelHandler to load models, it does allot more things
than only loading the model. It comes in EMF and MDR flavor.


Regards,

Alfons
"Guillaume Hillairet" <g.hillairet@gmail.com> schreef in bericht
news:457d750a6096dd9ed117b947870e97b7$1@www.eclipse.org...
> Hi all,
>
> I'm trying to load objects using a EMF Resource into a model. I use the
> Model class from EMF-VM. My problem is that when i try to instantiate a
> Model via the constructor Model(metamodel, resource) and use it in an ATL
> transformation, this latter seems to see the model as empty. But when i
> create a Model by loading a file from the filesystem, the transformation
> goes well. So what is the best way for loading a Model from an EMF
> Resource ?
>
> Regards,
> Guillaume
>
Previous Topic:[ATL] Transformation in xmi format?
Next Topic:[ATL] Use Case - Rational Rose to UML2 Tools
Goto Forum:
  


Current Time: Fri May 09 08:54:01 EDT 2025

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

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

Back to the top