[ATL] EMF Resource [message #89397] |
Fri, 29 August 2008 15:14  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.04251 seconds