Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Missing Java Profile
Missing Java Profile [message #549161] Sun, 25 July 2010 14:17 Go to next message
misty soul is currently offline misty soulFriend
Messages: 4
Registered: July 2010
Junior Member
I have switched recently from old papyrusuml to the new eclipse Papyrus MDT.
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) ?
Re: Missing Java Profile [message #549184 is a reply to message #549161] Sun, 25 July 2010 23:00 Go to previous messageGo to next message
Remi Schnekenburger is currently offline Remi SchnekenburgerFriend
Messages: 169
Registered: July 2009
Location: Palaiseau, France
Senior Member
Hi,

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.

Hope this will help!

Cheers,
Rémi


Remi Schnekenburger

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: Missing Java Profile [message #549219 is a reply to message #549184] Mon, 26 July 2010 07:31 Go to previous message
misty soul is currently offline misty soulFriend
Messages: 4
Registered: July 2010
Junior Member
Thank you for the hint, it worked perfectly!
Previous Topic:Three-way Association Class with multiplicity display problems
Next Topic:Missing Java Profile
Goto Forum:
  


Current Time: Fri Apr 19 22:11:37 GMT 2024

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

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

Back to the top