Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 517956

Summary: Tool ForceRefresh shall not refresh all diagrams
Product: [Modeling] Sirius Reporter: Jessy Mallet <jessy.mallet>
Component: DiagramAssignee: Jessy Mallet <jessy.mallet>
Status: CLOSED FIXED QA Contact: Julien Dupont <julien.dupont>
Severity: normal    
Priority: P3 CC: julien.dupont, laurent.redor, pierre.guilet
Version: 4.0.0Keywords: triaged
Target Milestone: 5.1.0   
Hardware: PC   
OS: Windows NT   
See Also: https://git.eclipse.org/r/99037
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=c5e4b54aeb4049b929a08a69a641a7f4336563f3
Whiteboard:
Bug Depends on:    
Bug Blocks: 518793    
Attachments:
Description Flags
Test case to use. none

Description Jessy Mallet CLA 2017-06-07 12:07:10 EDT
Created attachment 268793 [details]
Test case to use.

If forceRefresh on tool is enabled, it works as the AutomaticRefresh preference although it won't.

The solution consists to differentiate automaticRefresh and forceRefresh behaviour :
- ForceRefresh shall refresh the current diagram only
- if enabled, AutomaticRefresh shall refresh all diagrams.



Steps to reproduce:

- import in your workspace the modeling project forceRefresh.zip,
- open diagrams "firstDiag" and "secondDiag"
- In Window>Preferences>Sirius, disable "Automatic Refresh"
- set focus on firstDiag diagram and create a new Package
- This newPackage should not occurs on the secondDiag diagram because this diagram should not be refresh.
Comment 1 Laurent Redor CLA 2017-06-16 10:53:27 EDT
New Gerrit change created: https://git.eclipse.org/r/#/c/99037/
Comment 3 Pierre-Charles David CLA 2017-11-08 03:37:03 EST
Available in Sirius 5.1.0, see https://wiki.eclipse.org/Sirius/5.1.0.