|Stereotypes in Papyrus of Eclipse Neon [message #1751300]
||Sat, 07 January 2017 10:28
| Samer Afach
Registered: January 2017
So I'm learning UML while I already program, and I'm using Papyrus. There are things that are missing in Neon, and I wish someone could explain why these features are missing.|
So, I'm talking about java stereotypes. According to this tutorial:
(Please prepend youtube .com, as I'm not allowed to add external links as a new user here).
which teaches how to install Papyrus on Eclipse Luna, after installing everything, including "Papyrus Profile for Java Models", one gets the stereotypes that one can access through "Import registered profiles", as shown in the part of the same video (time=13 minutes).
The problem: None of this exists in Eclipse Neon! On Eclipse Neon, I install Papyrus using the package in:
And then use the package manager that comes up with Papyrus after installing it, or equally this source:
which includes a package called "Designer-JAVA (Incubation)" or called "Papyrus Java Profile, library and code generation". After installing this, I don't get the "Java" profile when I try to "Import registered profiles". This is what I get:
(see attachment EclipseProfileChoose.png)
Which doesn't show any stereotypes that I recognize from that video. No stereotypes for Java at all! All the stereotypes I see (for both the class and the property/variable) are weird and not understandable. Here they are:
(See attachments EclipseApplyVarStereoType.png and EclipseJavaStereotype.png)
My question(s): Are the stereotypes I see in the video officially missing in Neon? Or are they not necessary anymore for some UML related reason? How can I get these in Eclipse Neon? Please explain what's going on because I'm lost, as a beginner.
[Updated on: Wed, 11 January 2017 04:44]
Report message to a moderator
|Re: Stereotypes in Papyrus of Eclipse Neon [message #1751571 is a reply to message #1751516]
||Wed, 11 January 2017 15:20
| Charles Rivet
Registered: May 2014
I loaded Papyrus Neon.2 and the screen shot you included correspond to what I am seeing.|
You should note tht the YouTube video to which you refer was created in April 2015, so using a version of Papyrus that is six releases behind Neon.2.
Since the Java Designer additional component is still in incubation, it's extremely likely that there have been many modifications since then - Actually, given the differences we are seeing, there have been quite a few!
So, following the video, instead of applying the "Java" profile to your model, you would apply the "PapyrusJava" profile.
From what I understand, you also no longer need to use a stereotype to specify that a class is a "Java class" (or a property as a "JavaProperty")- Designer takes care of that internally. And if you use UML primitives, you could also generate C++ out of the same model using C++ designer.
To generate the code, you use "Designer > Generate Java Code" instead of "Java > Generate Java Code".
I hope this helps!
Powered by FUDForum
. Page generated in 0.03747 seconds