Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsMissing Java Profile
https://www.eclipse.org/forums/index.php/mv/msg/189998/602585/#msg_602585
I am not able anymore to use Java primitive types in my diagrams. I do have the JavaPrimitiveTypes.library.uml somewhere in a uml2.uml.resources jar in my eclipse plugins, but Papyrus doesn't seem to use it. The available profiles seem to be only Ecore, Standard ans SysML.
Is there a simple way to have the primitive Java datatypes (or better the primitive types plus some frequently used Java classes) ?]]>misty soul2010-07-25T14:17:28-00:00Re: Missing Java Profile
https://www.eclipse.org/forums/index.php/mv/msg/189998/602599/#msg_602599
Since the last version of old Papyrus UML, we did not integrate the management of registered libraries. This should come in next releases.
To simply add access to the java primitive types, you can follow these steps:
close your Papyrus model
open the uml model file using the default uml basic editor (the file having the same name than your "di" file, but with extension "uml".
select the root package
Menu UML Editor > Package > Import Type...
in the dialog that opens, as a choice pattern, enter "java". This should filter only required java predefined types
add all required types (select them and click "add")
save your uml model and leave the UML basic editor
open your di file. You should now have access to the java primitive types.