Reverse Engineer Java Plugin doesn't create associations [message #1733991] |
Thu, 02 June 2016 12:50  |
Eclipse User |
|
|
|
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 #1751000 is a reply to message #1733991] |
Tue, 03 January 2017 10:16   |
Eclipse User |
|
|
|
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.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05516 seconds