Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Error launching ATL transformation as Java application
Error launching ATL transformation as Java application [message #1005050] Thu, 24 January 2013 06:30 Go to next message
Dario Imparato is currently offline Dario Imparato
Messages: 20
Registered: August 2012
Junior Member
Hello,
I am trying to launch an ATL transformation as a Java application.
I followed this guide http://wiki.eclipse.org/ATL/User_Guide_-_The_ATL_Tools#ATL_Plugins and created a new ATL Plugin Project that provides a .java file that can be used to launch the transformation.
The problem is that my input model is an UML model (in.uml) with:
- an applied UML Profile (profile.uml)
- references with another UML model (ref.uml)
Launching the .java, the profile.uml was not recognized (obviously) so I loaded it as a IReferenceModel in this way:
IReferenceModel profile = factory.newReferenceModel();
injector.inject(profile,"profiles/profile.uml");

Now I have the message "Metamodel contains several classifiers with same name: Duration"
and output model does not contain all the elements that are created launching the transformation as "ATL transformation".
Suggestions?
Thanks in advance.
Dario Imparato
Re: Error launching ATL transformation as Java application [message #1053541 is a reply to message #1005050] Mon, 06 May 2013 09:02 Go to previous message
Dario Imparato is currently offline Dario Imparato
Messages: 20
Registered: August 2012
Junior Member
I solved creating .launch configuration file in original project (run configurations/Common/Save as Shared file) and selecting it in "ATL launch configuration" of ATL Plugin Wizard.
Thanks
Previous Topic:the error of runing ATL transformations in Java
Next Topic:Problem with multivalued field
Goto Forum:
  


Current Time: Fri Aug 01 08:04:05 EDT 2014

Powered by FUDForum. Page generated in 0.01933 seconds