Bug 540826

Summary: On the fly service modification in a plugin where the odesign is not is not taken in consideration
Product: [Modeling] Sirius Reporter: Pierre Guilet <pierre.guilet>
Component: CoreAssignee: Project inbox <sirius.core-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: julien.dupont
Version: 5.0.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
project to reproduce none

Description Pierre Guilet CLA 2018-11-06 06:06:19 EST
Created attachment 276481 [details]
project to reproduce

When a VSM is refering to a service that is in a plugin as dependency, any change to the service is not taken in consideration by the associated opened representation.

The project with the representation must be closed then opened to have the service modification taken in consideration.

Steps to reproduce:
1. Import EMF projects from ServiceInWorkspaceTests.zip archive
2. Launch a runtime
3. Import ServiceInWorkspaceTests.design and ServiceInWorkspaceTests.test projects
4. Create a new viewpoint specification project VSP
5. In ServiceInWorkspaceTests.design manifest add VSP as a dependency.
6. in VSP add ServiceInWorkspaceTests EMF project as dependency
7. open ServiceInWorkspaceTests.design VSM
8. Open the diagram representation of ServiceInWorkspaceTests.test container should be visible.
9. copy services of ServiceInWorkspaceTests.design in VSP services class
10. In VSM change the service link to the one of VSP and save.
11. Close the diagram and its project and reopen the diagram.
11.  container should still be visible.
12. in VSP services return null for both getChildren() methods and save.
13. Refresh the diagram.
KO container are still visible whereas they should not.
If you close the diagram and its project and reopen it, it should be not visible anymore.