Help generating java code in Papyrus. [message #1858361] |
Thu, 30 March 2023 13:08  |
Eclipse User |
|
|
|
Hi, i have downloaded recently:
https://www.eclipse.org/papyrus/download.html
latest RCP 2023-03 release (6.4.0) - Includes Java 11 JustJ JRE
So i uncompressed and run Papyrus....
1 - So is there all the Eclipse libraries and things that i need with a complete Papyrus installation, or should i add more plugins. All documentation i have read refers to Eclipse "standard" version or to Mars version, not to the Papyrus version.
2 - Once inside, i create a new papyrus project, with a diagram class, but i cant find any profile java code generator ( even c++), and i cant get the code generation. How can i generate code in java ? Do i have to install anything else ?
Any help would be apreciated, as im a teacher and im using papyrus in my class of uml.
Thanks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Help generating java code in Papyrus. [message #1858501 is a reply to message #1858441] |
Wed, 05 April 2023 04:51   |
Eclipse User |
|
|
|
Eduardo,
Papyrus itself follows the Eclipse release train, i.e. there is a quarterly release. The binaries are part of the update-site corresponding to the Eclipse release. In addition to that, the Papyrus team produces a ready-to use Eclipse-installation in which Papyrus has already been installed, the RCP.
Papyrus SW designer is an extension of Papyrus. It does not follow the release train, releases are less frequent. It also provides an RCP for convenience.
I was talking about the wiki pages with the installation instructions.
Seeing your questions, I realized that a simple getting-started example for Java was missing. This will be added in the context of bug 581773 and can afterwards be installed via "File->New example". I attach it here (copy it into an existing project)
SW Designer uses a generic code generation profile to provide information about the generator to use. In addition, it is useful to apply a specific profile for the used programming language and the standard profile. The former has concepts that are not available in standard UML, e.g. pointers in case of C/C++ or synchronized methods in case of Java, the latter the stereotypes create/destroy that denote constructors/destructors.
[Updated on: Wed, 05 April 2023 05:57] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
Re: Help generating java code in Papyrus. [message #1858644 is a reply to message #1858561] |
Thu, 13 April 2023 07:27  |
Eclipse User |
|
|
|
SysML is not included in the Papyrus base distribution nor in Papyrus SW Designer. If you need SysML, you can either start with a SysML installation (which evidently includes Papyrus) or install Papyrus or SW designer first and then add SysML.
|
|
|
Powered by
FUDForum. Page generated in 0.10821 seconds