Bug 509012 - [ClassDiagram] Moving a class changes the tree layout of generalizations
Summary: [ClassDiagram] Moving a class changes the tree layout of generalizations
Status: UNCONFIRMED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-09 18:34 EST by Nicolas Rouquette CLA
Modified: 2019-10-15 05:33 EDT (History)
1 user (show)

See Also:


Attachments
Initial diagram (397.12 KB, image/tiff)
2016-12-09 18:40 EST, Nicolas Rouquette CLA
no flags Details
1st move to the right (91.82 KB, image/tiff)
2016-12-09 18:41 EST, Nicolas Rouquette CLA
no flags Details
2nd move to the right (90.42 KB, image/tiff)
2016-12-09 18:41 EST, Nicolas Rouquette CLA
no flags Details
3rd move to the right (70.41 KB, image/tiff)
2016-12-09 18:42 EST, Nicolas Rouquette CLA
no flags Details
4th move to the right (67.13 KB, image/tiff)
2016-12-09 18:42 EST, Nicolas Rouquette CLA
no flags Details
5th move to the left (49.09 KB, image/tiff)
2016-12-09 18:43 EST, Nicolas Rouquette CLA
no flags Details
6th move to the left (47.06 KB, image/tiff)
2016-12-09 18:43 EST, Nicolas Rouquette CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Rouquette CLA 2016-12-09 18:34:09 EST
Please look at the model of OMG UML 2.5.1 in this project:

https://bitbucket.org/omgumlrtf/omg-uml-revision-task-force

The papyrus model is in Models/UML.di

There is currently only 1 diagram (StateMachine Redefinition)
At the top of the diagram, there is a class RedefinableElement
with 3 generalizations shown in tree layout style for 3 subclasses
(Region, Vertex, Transition).

Move the RedefinableElement shape horizontally towards the right of the diagram in several steps, about 1/2 of the shape width at a time, while maintaining the same relative distance between the bottom of the shape of RedefinableElement and the top of the shapes of the 3 subclasses.

In principle, this should only affect the vertical segment of the generalization edges but the horizontal segment should be unaffected.

In practice, something else is happening: the horizontal segments of the generalization tree edges shift towards the bottom of the diagram seemingly proportionally to how far right the RedefinableElement shape is moved.
Comment 1 Nicolas Rouquette CLA 2016-12-09 18:40:16 EST
Created attachment 265800 [details]
Initial diagram
Comment 2 Nicolas Rouquette CLA 2016-12-09 18:41:00 EST
Created attachment 265801 [details]
1st move to the right
Comment 3 Nicolas Rouquette CLA 2016-12-09 18:41:23 EST
Created attachment 265802 [details]
2nd move to the right
Comment 4 Nicolas Rouquette CLA 2016-12-09 18:42:10 EST
Created attachment 265803 [details]
3rd move to the right
Comment 5 Nicolas Rouquette CLA 2016-12-09 18:42:33 EST
Created attachment 265804 [details]
4th move to the right
Comment 6 Nicolas Rouquette CLA 2016-12-09 18:43:03 EST
Created attachment 265805 [details]
5th move to the left
Comment 7 Nicolas Rouquette CLA 2016-12-09 18:43:23 EST
Created attachment 265806 [details]
6th move to the left
Comment 8 Nicolas Rouquette CLA 2016-12-09 18:45:06 EST
The horizontal segments of the generalization lines progressively move towards the bottom of the diagram for the 4 moves to the right and for the last 2 moves to the left.
Comment 9 Thomas Wiman CLA 2019-10-15 05:33:55 EDT
The problem with tree layout still occurs in newer releasesm including the latest Papyrus v4.5.
When moving elements or reopen a diagram the tree lauout is broken.
Pressing F5 or the "refresh diagram" button help sometimes, and in sometimes it only result in a toogling between correct and broken layout.
In mine opinion, the tree layout is unusable as it only creates frustration.