Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Today's Messages (on)  | Unanswered Messages (off)

Forum: ATL
 Topic: Running ATL transformation on UML model outside of Eclipse
Running ATL transformation on UML model outside of Eclipse [message #1755019] Mon, 27 February 2017 01:02
Michele Guerriero is currently offline Michele GuerrieroFriend
Messages: 3
Registered: June 2016
Junior Member
Hello everyone. I created an ATL transformation, EMFTVM compiled, which transforms an UML model with applied my own UML profile, into a target model, for which I have an ecore metamodel.
So far I run the transformation using an Eclipse launch configuration. From the launch configuration panel I browse the EMF registry in order to select the URI for the input UML metamodel, which is: http://www.eclipse.org/uml2/5.0.0/UML. Then I browse my workspace in order to select my ecore file as the output metamodel. This way the transformation works correctly.

What I want to do now is to run the transformation outside of Eclipse. In order to do so, I need the ecore file for the input and output metamodel. Looking for the ecore file of the UML metamodel, I ended up with unzipping the org.eclipse.uml2.uml_5.2.2.v20161114-0827.jar file in the "plugin" folder of my Eclipse installation. The UML.ecore file is then under the "model" folder. If I open the UML.ecore file with a text editor I can see nsURI="http://www.eclipse.org/uml2/5.0.0/UML", so I suppose this file corresponds to the metamodel that I select from the EMF registry when I launch the transformation. The problem is that if I copy the UML.ecore file into my workspace and I run the transformation, this time giving for the input metamodel the path to the UML.ecore file, the transformation doesn't work. In particular it raises the following error:

org.eclipse.m2m.atl.emftvm.util.VMException: java.lang.UnsupportedOperationException: UML!Device::getAppliedStereotypes()

If I open the UML.ecore file using the Sample Ecore Model Editor I can see that the getAppliedStereotypes() and all the other operations for handling stereotypes are actually available, so I cannot understand why of that error.

How can I solve this problem? Am I using the right metamodel for UML?

Thanks a lot in advance for any help and suggestion.
Re: Running ATL transformation on UML model outside of Eclipse [message #1755021 is a reply to message #1755019] Mon, 27 February 2017 05:45
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 310
Registered: September 2012
Location: Belgium
Senior Member

The UML metamodel specifies the implementation of its EOperations in Java (amongst other things). Therefore, you cannot use the UML ecore file directly, but you should always refer to its namespace URI. Outside Eclipse, you need the entire UML plugin jar file.
 Topic: Problem with comparison
Re: Problem with comparison [message #1755022 is a reply to message #1755014] Mon, 27 February 2017 05:52
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 310
Registered: September 2012
Location: Belgium
Senior Member

IN!<unnamed> is just a string representation of model elements without a "name" property. It doesn't imply equality.
Forum: Java Development Tools (JDT)
 Topic: import java project
Re: import java project [message #1755023 is a reply to message #1754994] Mon, 27 February 2017 06:20
any aa is currently offline any aaFriend
Messages: 88
Registered: July 2016
Member
Can't any one help me?
Forum: Remote Application Platform (RAP)
 Topic: eclipse RAP + chartjs
Re: eclipse RAP + chartjs [message #1755024 is a reply to message #1755008] Mon, 27 February 2017 06:45
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2186
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
did you change browser zoom level?
Regards,
Ivan



Current Time: Mon Feb 27 07:13:49 GMT 2017

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

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