Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Core Java Library Profile for Eclipse(Not sure where this goes, or how to donate this to the project.)
Core Java Library Profile for Eclipse [message #1797751] Tue, 06 November 2018 07:35
Amir Eslampanah is currently offline Amir EslampanahFriend
Messages: 3
Registered: November 2018
Junior Member
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* 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)
  • Attachment: java.uml
    (Size: 9.11MB, Downloaded 30 times)
Next Topic:Document generation from a model
Goto Forum:

Current Time: Wed Jan 29 10:34:56 GMT 2020

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

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

Back to the top