Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Metamodel reference
[ATL] Metamodel reference [message #58875] Tue, 21 August 2007 09:09 Go to next message
Eclipse UserFriend
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 21:05 Go to previous messageGo to next message
Frédéric Jouault is currently offline Frédéric JouaultFriend
Messages: 572
Registered: July 2009
Senior Member
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 16:17 Go to previous message
Eclipse UserFriend
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.
Previous Topic:[ATL] : Insertion Order in Sequence ?
Next Topic:[ATL] Java code
Goto Forum:
  


Current Time: Mon Jan 18 08:52:34 GMT 2021

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

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

Back to the top