Stereotypes in Papyrus of Eclipse Neon [message #1751300] |
Sat, 07 January 2017 10:28 |
Samer Afach Messages: 3 Registered: January 2017 |
Junior Member |
|
|
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:
/watch?v=gmf8CswqKcs
(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:
http://download.eclipse.org/modeling/mdt/papyrus/updates/releases/neon/
And then use the package manager that comes up with Papyrus after installing it, or equally this source:
http://download.eclipse.org/modeling/mdt/papyrus/components/designer/
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 |
|
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!
/Charles Rivet
|
|
|
|
Re: Stereotypes in Papyrus of Eclipse Neon [message #1751758 is a reply to message #1751580] |
Fri, 13 January 2017 14:55 |
|
Hi Charles,
thanks for responding.
Yes, we had some refactorings of the Java profile and it is indeed not necessary to stereotype a class as Java class. You still need (of course) use stereotype for Java specific concepts, e.g. a static clsasifier in cases of nested classes.
|
|
|
Re: Stereotypes in Papyrus of Eclipse Neon [message #1800439 is a reply to message #1751758] |
Fri, 28 December 2018 12:13 |
hey you Messages: 15 Registered: July 2018 |
Junior Member |
|
|
Hey Ansgar,
in the tutorial from youtube, after he applies stereotype a class as Java class, and generates code, getters and setters are generated automatically.
However, after I click
Designer->Generate Code in newer Papyrus version (in my case 1.1.0) no setters and getters are generated automatically.
[Updated on: Fri, 28 December 2018 13:59] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04271 seconds