[ATL] Metamodel reference [message #58875] |
Tue, 21 August 2007 05:09  |
Eclipse User |
|
|
|
Originally posted by: eric.maes.thalesgroup.com
Is it possible to reference a metamodel by a file in a loaded plugin using
the notation platform:/... ?
|
|
|
Re: [ATL] Metamodel reference [message #58976 is a reply to message #58875] |
Tue, 21 August 2007 17:05   |
Eclipse User |
|
|
|
Hi Eric,
> Is it possible to reference a metamodel by a file in a loaded plugin
> using the notation platform:/... ?
Loading models (including metamodels):
--------------------------------------
The loadModel method of AtlModelHandler takes an InputStream as source
argument. If you use this method, then you may get this InputStream from
any URL, java.io.File, etc.
There are several EMF-specific methods in AtlEMFModelHandler that can be
called to load models. They offer support for more advanced features of
EMF that cannot be supported by the version taking an InputStream as
argument. For instance, the actual EMF URI of a model is required when
loading an XMI file that makes relative references to another XMI file.
Both the launch config and the am3.loadModel ant task call the
EMF-specific methods if EMF is used.
Referencing metamodels already loaded in EMF:
---------------------------------------------
Metamodels loaded by a plugin are usually registered in the EMF package
registry. It is generally not necessary to reread them, and they can be
directly loaded "by URI" (here the URI is not an EMF URI, but an XML
namespace URI). Besides, if additional Java code is provided by the
plugin, rereading the .ecore file would not work correctly, and loading
the metamodel "by URI" is mandatory.
Best regards,
Frédéric Jouault
|
|
|
Re: [ATL] Metamodel reference [message #59438 is a reply to message #58976] |
Fri, 24 August 2007 12:17  |
Eclipse User |
|
|
|
Originally posted by: eric.maes.thalesgroup.com
In fact, I was looking for loading an input model (UML profile) in an
already loaded plug-in using the launch configuration interface.
I'll run the ATL transformation using programming instead.
Thanks for your answer.
|
|
|
Powered by
FUDForum. Page generated in 0.02692 seconds