Bug 540826 - On the fly service modification in a plugin where the odesign is not is not taken in consideration
Summary: On the fly service modification in a plugin where the odesign is not is not t...
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 5.0.0   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2018-11-06 06:06 EST by Pierre Guilet CLA
Modified: 2018-11-09 08:51 EST (History)
1 user (show)

See Also:


Attachments
project to reproduce (143.13 KB, application/x-zip-compressed)
2018-11-06 06:06 EST, Pierre Guilet CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.