Bug 440439 - A same node mapping cannot be reused as border and sub node in the same time
Summary: A same node mapping cannot be reused as border and sub node in the same time
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 1.0.0   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on: 440315
Blocks:
  Show dependency tree
 
Reported: 2014-07-25 10:13 EDT by Maxime Porhel CLA
Modified: 2014-07-25 10:24 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 Maxime Porhel CLA 2014-07-25 10:13:53 EDT
Steps to reproduce: 
 . Get the Bug 440315 reproduction case
 . Open the diagram
 . The container has only sub nodes but its mapping references the class_node mapping as reused sub node mapping AND as resued bordered node mapping.

The EObjectCouple used to retrieve previous candidates is not sufficient as here the key used is (container, mapping) and we get the same key for a container and the mapping reused as sub node and/or reused as border nodes. We should discriminate this with the current feature referencing the refreshed mapping. 

And in the other places we use EObjectCouple, the same modification might be required to correclty discriminate both situations.
Comment 1 Alex Lagarde CLA 2014-07-25 10:24:41 EDT
Reproduced with Sirius 1.0.0 : the container only have 2 nodes as children and no bordered nodes