Community
Participate
Working Groups
The enhancement has two parts: * add the status "Synchronized"/"Unsynchronized" in the status bar * add an icon in the bottom right corner of the diagram that illustrate this status. This second part is optional under system property
New Gerrit change created: https://git.eclipse.org/r/100563
homologation scenarios: SCENARIO 1: the status "Synchronized"/"Unsynchronized" in the status bar 1- open any synchronize diagram => check that the Status bar message is coherent with the diagram synchronize status "Synchronized diagram" 2- with contextual menu on diagram, change the Synchronize status to "Unsynchronized" => check that the Status bar message is updated with "Unsynchronized diagram" SCENARIO 2: diag synchronize status as decorator 1- open any synchronized diagram => check that an icon is displayed in the bottom right corner of the diagram editor 2- Resize editor, moving sides or showing/hiding the palette => check that the icon is still displayed in the bottom right corner of the diagram editor 3- Move some diagram elements so that a scroll bar is displayed. Move the scroll bar => check that the icon is still displayed in the bottom right corner of the diagram editor 4- with contextual menu on diagram, change the Synchronize status to "Unsynchronized" => check that the icon have now a red cross
added https://git.eclipse.org/r/#/c/96002/6
scenario update for scenario2, set activateDiagramSyncStatusDecorator property system to true
Gerrit change https://git.eclipse.org/r/96002 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=ae7fd4f08bf4ff5740fcd9edad3131e1540bacb3
Gerrit change https://git.eclipse.org/r/100563 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=c3d6e8c5e6b0e5834a7ed9a0faf9cdff28d60d4e
The status decorator in the diagram is an experimental functionality. That's why there is nothing about it in the release notes It can be activated using the system property activateDiagramSyncStatusDecorator=true
New Gerrit change created: https://git.eclipse.org/r/103766
Gerrit change https://git.eclipse.org/r/103766 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=c1df2e6ba1d234d34126656f2d85cafa778d2dcd
New Gerrit change created: https://git.eclipse.org/r/105121
Finally, the icon that was initially a POC must be really usable: * A preference must be added to enable it or not * It must be documented * It must be tested.
New Gerrit change created: https://git.eclipse.org/r/105141
New Gerrit change created: https://git.eclipse.org/r/105140
New Gerrit change created: https://git.eclipse.org/r/105142
New Gerrit change created: https://git.eclipse.org/r/105188
Gerrit change https://git.eclipse.org/r/105121 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=ed557793b26921a9a6b938c668dc72994205bc6f
Gerrit change https://git.eclipse.org/r/105141 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=712aaa579fed33150f356f345fb92021826e3318
Gerrit change https://git.eclipse.org/r/105140 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=e3cf7df8e8e48849d840fed8b772ff8a09ac7d07
Gerrit change https://git.eclipse.org/r/105142 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=857b944a503190aa4120c4af16cc5a565ca69c08
Gerrit change https://git.eclipse.org/r/105188 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=55a1159593d22e4e88b4949d37e4ecc65c4035b0
Scenario 1 Validated
New Gerrit change created: https://git.eclipse.org/r/105515
New Gerrit change created: https://git.eclipse.org/r/105514
There are 2 problems concerning the icon in the bottom right corner: * One with zoom that is not correctly managed * Another with a blink effect when we scroll a big diagram Steps to validate for SCENARIO 2: diag synchronize status as decorator (replace steps to validate of comment 2): 1- open any synchronized diagram => check that there is no icon in the bottom right corner, close the diagram 2- Enable preference "Sirius/Sirius Diagram/Show synchronize status decorator on diagram" 3- Open the diagram => Check that an icon is displayed in the bottom right corner of the diagram editor 4- Change the status with constextual menu "Unsynchronized" on the diagram => Check that the icon is changed 5- Resize editor, moving sides or showing/hiding the palette => check that the icon is still displayed in the bottom right corner of the diagram editor 6- Zoom the editor => Check that an icon is displayed in the bottom right corner of the diagram editor 7- Move some diagram elements so that a scroll bar is displayed. Move the scroll bar => Check that the icon is still displayed in the bottom right corner of the diagram editor without blink effect (the icon only disappears during the move)
Even with 2 above gerrits, there are bugs when the editor is inderictly reduced (showing palette, from max size to "restore" size, ...). In these cases, the decorator is not visibile. It is not relocated so scroll bar appears.
New Gerrit change created: https://git.eclipse.org/r/105552
Gerrit change https://git.eclipse.org/r/105552 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=5dbddc142d6cc2567605ca92b59e70e923f37495
Gerrit change https://git.eclipse.org/r/105514 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=3048b70c4ca5102d85c1dbd61fda419f7e527fb8
Gerrit change https://git.eclipse.org/r/105515 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=b735e5a9055a283e087f578326fe726e334fe70b
There is still an issue when performing an arrange all or a reset to origin: the decorator is still at the original lower right corner with scroll bars even if the diagram can be displayed without scroll bar.
The behavior is similar with the lock decorator on which this enhancement is technically based. Will be fixed in an other bugzilla.
Validated on Sirius Stable 5.1.0.201709221508
It remains a problem with the bottom right decorator when doing zoom with mouse wheel. Steps to reproduce: * Display the decorator (preference "Sirius/Sirius Diagram/Show synchronize status decorator on diagram") * Zoom in with the mouse wheel 4 times * Then zoom out with the mouse wheel until 50%, the decorator is no longer in the bottom right corner but in the middle of the screen.
New Gerrit change created: https://git.eclipse.org/r/106505
Gerrit change https://git.eclipse.org/r/106505 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=7ffa5357c6b96a85ca2d206bb6c70d7985c77d53
Available in Sirius 5.1.0, see https://wiki.eclipse.org/Sirius/5.1.0.