Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Launch a transformation from a java application using metamodel by URI
[ATL] Launch a transformation from a java application using metamodel by URI [message #54404] Mon, 23 July 2007 11:08 Go to next message
Eclipse UserFriend
Originally posted by: bch.openbluelab.org

Hi,

I have read the question "How do I launch transformations
programmatically?" on the Wiki
( http://wiki.eclipse.org/index.php/ATL_Howtos#How_do_I_launch _transformations_programmatically.3F)
and I have used the java code writed by Dennis Wagelaar but I don't know
how to launch my metamodel by URI (in my example :
uri:http://www.eclipse.org/uml2/2.0.0/UML). Have you an idea ?

Best Regards

Benjamin CHEVALLEREAU
Re: [ATL] Launch a transformation from a java application using metamodel by URI [message #54540 is a reply to message #54404] Tue, 24 July 2007 09:15 Go to previous message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 147
Registered: July 2009
Senior Member
Benjamin CHEVALLEREAU schreef:
> Hi,
>
> I have read the question "How do I launch transformations
> programmatically?" on the Wiki
> ( http://wiki.eclipse.org/index.php/ATL_Howtos#How_do_I_launch _transformations_programmatically.3F)
>
> and I have used the java code writed by Dennis Wagelaar but I don't know
> how to launch my metamodel by URI (in my example :
> uri:http://www.eclipse.org/uml2/2.0.0/UML). Have you an idea ?
>
> Best Regards
>
> Benjamin CHEVALLEREAU

The AtlEMFModelHandler.loadModel() method that I used takes a URI object
instead of a URI String. Only the URI String version of loadModel()
checks for the "uri:..." scheme. You'll need to change the code in
Main.loadModel().

Then make sure your Java program does all the EMF/UML initialisation
that is normally done by Eclipse. Check EMF/UML documentation on how to
do this.

Regards,
Dennis
Previous Topic:[ATL] ant launch.xml problem with the AntPlugin
Next Topic:ATL User Manual
Goto Forum:
  


Current Time: Mon Jan 25 15:01:59 GMT 2021

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

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

Back to the top