Bug 545594 - Pb with collapsed region compartment with edges
Summary: Pb with collapsed region compartment with edges
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 6.1.0   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: 6.2.1   Edit
Assignee: Laurent Redor CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on: 545533
Blocks:
  Show dependency tree
 
Reported: 2019-03-20 13:04 EDT by Laurent Redor CLA
Modified: 2019-06-24 03:59 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Redor CLA 2019-03-20 13:04:22 EDT
+++ This bug was initially created as a clone of Bug #545533 +++

With collapsed compartment, it is possible, in some cases, to have edge visible even if source or target is not visible. This causes to have an edge drawn from or to nowhere as in "edgePointingToInvisibleNode.png"

Steps to reproduce:
* Import the projet "DesignerTestProject" (from DesignerTestProject.zip): This project is a copy of data contained in "/org.eclipse.sirius.tests.junit/data/unit/compartments" but completed for this case
* Open the diagram "regionWithEdges"
* Collapse the "region" of "Center_p4" container (select it and click on the "-" button)
* The edge from "Left_p3" and "newPackage1" disappears: OK.
* Save the session
* Export this diagram as png image using "Export diagram as image" button from the tabbar
* Open the exported image
* The edge is visible in the exported image: KO
* Move the container "Left_p3"
* The edge appears: KO
* Move the container "Center_p4"
* The edge disappears: OK

This problem has been detected in Sirius 6.1.0. But it probably exists since the addition of the compartments.
Comment 1 Eclipse Genie CLA 2019-03-20 13:59:05 EDT
New Gerrit change created: https://git.eclipse.org/r/139175
Comment 2 Eclipse Genie CLA 2019-03-20 13:59:08 EDT
New Gerrit change created: https://git.eclipse.org/r/139173
Comment 3 Eclipse Genie CLA 2019-03-20 13:59:11 EDT
New Gerrit change created: https://git.eclipse.org/r/139172
Comment 4 Eclipse Genie CLA 2019-03-20 13:59:19 EDT
New Gerrit change created: https://git.eclipse.org/r/139174
Comment 9 Laurent Redor CLA 2019-04-09 09:52:01 EDT
Steps to validate:
* All "steps to reproduce" from the description must be OK.
Comment 10 Pierre-Charles David CLA 2019-06-24 03:59:36 EDT
Available in Sirius 6.2.1: https://wiki.eclipse.org/Sirius/6.2.1