Bug 505686 - Note attached to unpinned node is not moved with ArrangeAll
Summary: Note attached to unpinned node is not moved with ArrangeAll
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 4.0.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2016-10-11 04:20 EDT by Laurent Fasani CLA
Modified: 2016-10-11 08:15 EDT (History)
1 user (show)

See Also:


Attachments
odesign and project (75.63 KB, application/x-zip)
2016-10-11 04:20 EDT, Laurent Fasani CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Fasani CLA 2016-10-11 04:20:56 EDT
Created attachment 264772 [details]
odesign and project

* import attached projects
* open package entities diagram
* select the note node
-> issue: the pin/unpin button in the tabbar are greyed as one should be active

* move newPackage1 -> the node is pinned
* unpin "newPackage1"
* ArrangeAll
-> issue: the note is not moved as if it was still pinned

The doc says (sirius User Manual/Diagrams/Features Overview)
>Pin/Unpin on Notes
>
>The notes can be pinned if they are attached to a pinned diagram element. If a >note is attached to several elements of which at least one is pinned then the >note is pinned.

That lets suppose that if the note is not pinned it should be taken by the arrangeAll
Comment 1 Laurent Fasani CLA 2016-10-11 04:31:38 EDT
forget the scenario :
>* import attached projects
>* open package entities diagram
>* select the note node
>-> issue: the pin/unpin button in the tabbar are greyed as one should be active

Nothing in the doc indicates that one of the pin/unpin buttons should be active or not.
The only way to know if a Note is pinned is to pin the node on which it is attached and check that it won't move on ArrangeAll
Comment 2 Laurent Fasani CLA 2016-10-11 06:04:21 EDT
Consider the note attached to the node
* check the Sirius/Sirius Diagram/"Move unlinked notes during layout" preference.
* move the node and check it is pinned
* arrange All -> the note attached to the node is not moved : ok
* move the node and unpinned it
* arrange All -> the note attached to the node is moved : ok

* uncheck the Sirius/Sirius Diagram/"Move unlinked notes during layout" preference.
* move the node and check it is pinned
* arrange All -> the note attached to the node is not moved : ok
* move the node and unpinned it
* arrange All -> the note attached to the node is NOT moved : KO
Comment 3 Laurent Fasani CLA 2016-10-11 08:15:23 EDT
This behavior is the same as for sirius 3.1.3