Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Browse an atl model
Browse an atl model [message #79029] Mon, 14 April 2008 08:36 Go to next message
Eclipse UserFriend
Originally posted by:


I'm trying to retrieve, programmaticaly, the module declaration from an
..atl file. (create mB : mmB from mA : mmA).
To begin I've injected my .atl file into an ASMModel.

I've managed to retrieve the Module element like this :
Set<ASMModelElement> setModule = model.getElementsByType("Module");
ASMModelElement module = setModule.iterator().next();

But then I don't know how to get the refences inModules, outModels, etc.
from the ModelElement module.
[ATL] Re: Browse an atl model [message #79036 is a reply to message #79029] Mon, 14 April 2008 08:49 Go to previous message
William Piers is currently offline William PiersFriend
Messages: 297
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit


Please remember to use the [ATL] prefix on you subjects, thanks.

You can have a look at the getModelsFromATLFile(IFile file) method in
the MainATLTab class, which seems to do what you want. Here is a quick
link to the class : .eclipse.m2m.atl/plugins/org.eclipse.m2m.atl.adt.debug/src/o rg/eclipse/m2m/atl/adt/launching/ ng_Project&view=markup



Bertrand a
Previous Topic:[Announcement] Eclipse/OMG Symposium at the OMG Technical Meeting in Ottawa
Next Topic:[ATL] Full reference to a metamodel class
Goto Forum:

Current Time: Sun Aug 09 01:12:56 GMT 2020

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

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

Back to the top