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: an.onymo.us

Hi,

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: 301
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090400090301080309000106
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hello,

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 :
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2m/org .eclipse.m2m.atl/plugins/org.eclipse.m2m.atl.adt.debug/src/o rg/eclipse/m2m/atl/adt/launching/MainAtlTab.java?root=Modeli ng_Project&view=markup

Regards,

William

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: Fri Sep 20 22:37:28 GMT 2024

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

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

Back to the top