Skip to main content



      Home
Home » Modeling » Papyrus » [Solved:] How to "Generate Java Code"?
[Solved:] How to "Generate Java Code"? [message #1219800] Thu, 05 December 2013 15:15 Go to next message
Eclipse UserFriend
I just discovered the menu option (right click on Class in Class Diagram)
=>Java=>"Generate Java Code"

It gives me following error message:
...................................................
"Problem Occured"
'Generate java classes' has encountered a problem.
No classes or packages produced from the
transformation. Nothing is generated.
...................................................

How do I correctly use this feature to generate java code from an Papyrus UML class diagram? Are there some Tutorials on java code generation with Papyrus?

I only know about some old topics on java code generation:
http://stackoverflow.com/questions/7130937/how-to-generate-code-by-papyrus-on-eclipse
http://www.eclipse.org/forums/index.php/mv/msg/466701/1067046/#msg_1067046

The impression that I get from those old topics is that Papyrus is not able to generate java code on its own and that I would have to use additional plugins. Did this change? If Papyrus is not yet able to generate java code: what is the meaning of that context menu?

[Updated on: Sat, 14 December 2013 14:45] by Moderator

Re: How to "Generate Java Code"? [message #1220521 is a reply to message #1219800] Thu, 12 December 2013 05:28 Go to previous messageGo to next message
Eclipse UserFriend
Hi Stefan,

I have just try the java generator, and I have the same problem. A
library is missing in qvto.
This is a new bug. I will correct it asap.
Can you fill a bug report in bugzilla (with me in cc) ?

Otherwise, this generator work as you have tried:
- select a class or a package, and choose "generate java file". The
class will be generated.
- you can also model projects, src dir and packages in your UML model
(by using stereotypes). The generator will generate the classes in the
specified project, sources dir and packages.

Hope this help,
Cedric


Stefan Eidelloth a écrit :
> I just discovered the menu option (right click on Class in Class Diagram)
> =>Java=>"Generate Java Code"
>
> It gives me following error message:
> ..................................................
> "Problem Occured"
> 'Generate java classes' has encountered a problem.
> No classes or packages produced from the transformation. Nothing is
> generated.
> ..................................................
>
> How do I correctly use this feature to generate java code from an
> Papyrus UML class diagram? Are there some Tutorials on java code
> generation with Papyrus?
>
> I only know about some old topics on java code generation:
> http://stackoverflow.com/questions/7130937/how-to-generate-code-by-papyrus-on-eclipse
>
> http://www.eclipse.org/forums/index.php/mv/msg/466701/1067046/#msg_1067046
>
> The impression that I get from those old topics is that Papyrus is not
> able to generate java code on its own and that I would have to use
> additional plugins. Did this change? If Papyrus is not yet able to
> generate java code: what is the meaning of that context menu?
Re: How to "Generate Java Code"? [message #1220721 is a reply to message #1220521] Fri, 13 December 2013 04:42 Go to previous messageGo to next message
Eclipse UserFriend
Try the UML to Java generator based on Acceleo : https://github.com/ObeoNetwork/UML-Java-Generation
Re: How to "Generate Java Code"? [message #1220862 is a reply to message #1220721] Sat, 14 December 2013 14:44 Go to previous messageGo to next message
Eclipse UserFriend
Thank you for your answers.
I reported the bug here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=424061
Re: [Solved:] How to "Generate Java Code"? [message #1727977 is a reply to message #1219800] Wed, 30 March 2016 01:22 Go to previous message
Eclipse UserFriend
Hello Sir,
can you provide the code to create class diagram of uml diagram using papyrus API in normal java plugin.
Previous Topic:Syml
Next Topic:Documentation Generation
Goto Forum:
  


Current Time: Mon Jul 07 05:10:22 EDT 2025

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

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

Back to the top