Code generation from a transformed model [message #1766824] |
Tue, 27 June 2017 11:57  |
Eclipse User |
|
|
|
Hello,
I hope that I am asking my question in a right forum.
I have an ATL transformation that the input and out metamodels are the profiles I defined. The transformed output model has some operations. I want to generate Java code from the output model.
I am able to generate the Java code as explained in https://wiki.eclipse.org/Java_Code_Generation but I don't know how to generate code from a transformed model. Any help is appreciated.
Thank you very much.
Mahin
|
|
|
|
|
Re: Code generation from a transformed model [message #1796333 is a reply to message #1767232] |
Thu, 11 October 2018 01:42  |
Eclipse User |
|
|
|
Jeni Martin wrote on Mon, 03 July 2017 21:29Hello,
I tried what you kindly suggested, but when I right click on one of the transformed classes, and then choose "Designer"-->Generate Java code, it says that the operation is not enabled.
Thanks,
Mahin
Hi,
I am having the same issue. i am using eclipse photon committers under windows 10 pro and have installed Papyrus Photon (4.0.0). I also installed the java component of papyrus:
http://download.eclipse.org/modeling/mdt/papyrus/components/designer/
from
https://wiki.eclipse.org/Java_Code_Generation
but when i tried to generate code for my UML class diagram by right clicking on window and then selecting option( designer -> Generate code ) it showed pop-up that "this operation is not enabled"
and after this occurrence, when i again tried to select the option ( designer -> Generate code ), it was gone from the drop-down which i previously selected after right clicking the window.
I am currently learning Object Oriented And Analysis and i am using Eclipse photon for drawing Use Cases, class diagrams for scenarios and also using java component to generate code for class diagrams.
When I opened my model.di file, that i made in my university's lab, the eclipse photon committers on my laptop showed a window named " Repair stereotypes* " .The java code for the class diagram in that model.di file was generated normally in my university's lab. But in lab the computers were having eclipse Luna.
On the " Repair Stereotypes* " window it was written that:
"For each missing profile definition, select an action to correct the problem. Recommended actions are selected already."
2 Problems were displayed:
1- One Resource was having issue with profile -> "(java) - unknown schema"
count -> ""
2- Another Resource was having issue with Count -> "2 danging stereotypes".
After applying actions, it showed window saying, "Problem in Repairing Stereotypes -some actions cannot be completed"
The screen shots of above windows are in the attached file.
Any advice would be very helpful.
Thanks,
Aleena
|
|
|
Powered by
FUDForum. Page generated in 1.06401 seconds