Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Reverse Engineer Java Plugin doesn't create associations
Reverse Engineer Java Plugin doesn't create associations [message #1733991] Thu, 02 June 2016 16:50 Go to next message
Stevie Wo is currently offline Stevie WoFriend
Messages: 2
Registered: June 2016
Junior Member
I'm using the Papyrus Reverse Engineering Java plugin and am able to create UML diagrams from my Java packages, but when I drag and drop the package into the Papyrus model, it only creates the class diagrams. It does not create any of the lines to show associations between the classes.

For example, I have a Java package with the following classes:
Class A
Class B
Class C

Class A is an interface that is implemented by Class B. Class C then extends Class B. Papyrus creates the UML class diagrams but does not show any associations between the classes.

I though Papyrus supports this - am I incorrect?
Re: Reverse Engineer Java Plugin doesn't create associations [message #1734067 is a reply to message #1733991] Fri, 03 June 2016 13:22 Go to previous messageGo to next message
Benoit Maggi is currently offline Benoit MaggiFriend
Messages: 129
Registered: March 2013
Location: Bordeaux, France
Senior Member
Hi,

2 options:
- drop the relations from the model explorer to the diagram
- Right Cliks> Filter > Show/Hide Related Links


Benoit
Re: Reverse Engineer Java Plugin doesn't create associations [message #1734101 is a reply to message #1734067] Fri, 03 June 2016 19:10 Go to previous messageGo to next message
Stevie Wo is currently offline Stevie WoFriend
Messages: 2
Registered: June 2016
Junior Member
Hi Benoit

I tried the "Right Cliks> Filter > Show/Hide Related Links" but nothing happens. In the popup, I see entries under "Links to Display", but the "Link Kind", "Ends", "Sources", and "Targets" are all empty. There are also no errors being reported in the log files. Finally, I am in the Class Diagram view.

I do not see "Relations" as an option in the Model Explorer. Can you clarify this?

[Updated on: Fri, 03 June 2016 19:25]

Report message to a moderator

Re: Reverse Engineer Java Plugin doesn't create associations [message #1750621 is a reply to message #1734101] Fri, 23 December 2016 12:02 Go to previous messageGo to next message
ping cin is currently offline ping cinFriend
Messages: 13
Registered: February 2014
Junior Member
Hi,

I am using Papyrus to generate UML model from Java, and I am facing the same problem, no Associations, no Inheritance, no Attributes, and no Operations are displayed (reverse engineered), only classes are displayed.

Could you please help me here? Has anyone managed to reverse engineer all elements ?

Thank you in advance.
Best regards.
Re: Reverse Engineer Java Plugin doesn't create associations [message #1750671 is a reply to message #1750621] Sat, 24 December 2016 15:39 Go to previous messageGo to next message
Richard Freggi is currently offline Richard FreggiFriend
Messages: 89
Registered: July 2015
Member
Hello I was doing this just yesterday exactly as Benoit said on Papyrus Neon with Designer-Java plugin installed.
It works as Benoit said for me, with a note that only Generalizations (inheritance) and interface realizations show. I think this is correct because a lot of other associations that have semantic value in a logical class diagram do not have value in Physical class diagram or in Java code (the association is replaced by appropriate type in the classes).

There is a button in Papyrus Designer plugin menu to recreate associations based on types but it does not work (fair enough, it's incubation)
Hope this helps.
Re: Reverse Engineer Java Plugin doesn't create associations [message #1750672 is a reply to message #1750621] Sat, 24 December 2016 15:39 Go to previous messageGo to next message
Richard Freggi is currently offline Richard FreggiFriend
Messages: 89
Registered: July 2015
Member
Duplicate message

[Updated on: Sat, 24 December 2016 15:43]

Report message to a moderator

Re: Reverse Engineer Java Plugin doesn't create associations [message #1750673 is a reply to message #1750621] Sat, 24 December 2016 15:40 Go to previous messageGo to next message
Richard Freggi is currently offline Richard FreggiFriend
Messages: 89
Registered: July 2015
Member
Duplicate message

[Updated on: Sat, 24 December 2016 15:43]

Report message to a moderator

Re: Reverse Engineer Java Plugin doesn't create associations [message #1751000 is a reply to message #1733991] Tue, 03 January 2017 15:16 Go to previous messageGo to next message
Shuai Li is currently offline Shuai LiFriend
Messages: 19
Registered: March 2016
Location: Paris Saclay, France
Junior Member
Generally speaking, what happens when you reverse engineer a whole Java project to a UML model, the reverse tool at least fills the semantic model (i.e. shown in the Model Explorer) with classes, attributes, operations, relationships excluding associations, etc...

Unless you reverse by dropping Java elements to UML diagrams directly, you have to create the diagrams, and then drag'and'drop the semantic model elements (Model Explorer) into the diagrams. I.e. use Papyrus itself to display semantic model elements in diagrams.

Note that in C++ reverse we also create the associations (and aggregations/compositions when necessary). In Java we have decided to not create associations automatically for reasons cited by Richard Freggi. The feature to recreate these associations from analyzing UML properties, is supposed to be fixed in the future.
Reverse Engineer Java Plugin to create UML Diagrams => How do you do ? [message #1766621 is a reply to message #1733991] Fri, 23 June 2017 14:28 Go to previous messageGo to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 2
Registered: October 2009
Junior Member
Hi Steve,

You said that using the Papyrus reverse Engineering java plugin, you are able to create UML diagrams from your java packages.

Ho do you do ?

I have tried with several versions of Eclipse and Papyrus, with no result.

Could you help me please?

Regards,

John

[Updated on: Fri, 23 June 2017 14:40]

Report message to a moderator

Re: Reverse Engineer Java Plugin doesn't create associations [message #1773282 is a reply to message #1733991] Tue, 26 September 2017 02:43 Go to previous message
Sam J is currently offline Sam JFriend
Messages: 1
Registered: September 2017
Junior Member
Hi ,

Can anyone provide us some information about this ?
please clarify is it supported to generate full class diagrams with attributes, operations and relationships.
I am facing the same problem and can't figure out a solution
Previous Topic:How to specialize a SysML diagram for user defined usage
Next Topic:Zero values in literals omitted in .UML file
Goto Forum:
  


Current Time: Fri Jul 20 14:50:03 GMT 2018

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

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

Back to the top