|Core Java Library Profile for Eclipse [message #1797751]
||Tue, 06 November 2018 07:35
| Amir Eslampanah
Registered: November 2018
First off to mods, I have no idea how to contribute to this project, but I noticed that the core java library was missing from the list of profiles we can use with the model properties.|
So I found a way to add it, please feel free to add this in whole or in part, or any way you find fit to the papyrus project, so others do not waste hours or think it to be impossible. Thank you.
Simply download the Java Core (JCL) API UML file attached.
And use the model->import->import package from user model functionality in papyrus in eclipse
Then you can use standard java library types outside of just primitives in your papyrus UML diagram.
I've tested this with the code generator and it works with one caveat, you end up with an extra local copy of the standard library packages in the generated project. Simply delete these and you can move on with your day. I'm not sure, but eclipse payprus codegen doesn't currently seem to generate the imports necessary, so you'll have to do that manually or let the IDE do it for you, but it sure beats having placeholder types.
If you're wondering how this was done, I used the jar2uml eclipse plugin.
To generate a UML file for the standard library jar file version 1.8, this is usually under the jre installation directory inside the lib folder.
This gave me a model with all the standard library packages within it, but the model was named rt.java.* instead of java.* which messed with the code generation process. So i simply removed the other packages other than java.* and made java the model itself instead of a package.
(Reposted from my own answer on stackoverflow)
(Size: 9.11MB, Downloaded 30 times)
Powered by FUDForum
. Page generated in 0.01954 seconds