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

Bug 331132

Summary: [Core] resource update is harmful in case of profiles
Product: [Modeling] Papyrus Reporter: Ansgar Radermacher <ansgar.radermacher>
Component: CoreAssignee: Ansgar Radermacher <ansgar.radermacher>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: cedric.dumoulin, Patrick.Tessier, rschnekenburger, yann.tanguy
Version: 0.7.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Ansgar Radermacher CLA 2010-11-25 10:07:05 EST
If a resource that is referenced by an editor is updated, Papyrus tries to unload the resource (for triggering a reload when demanded). While this procedure works well in general, it is harmful if an applied profile is unloaded.
Comment 1 Ansgar Radermacher CLA 2010-11-25 17:46:57 EST
I commited a fix which

- Transforms resource update mechanism into a service (thanks, Cedric)
- Moves the service from core to uml.service.types (since modified service needs uml2 dependency)
- Added check, if modified resource is a profile (don't unload in this case)

It seems to work fine, but it's not clear for me whether the org.eclipse.papyrus.service.types plugin is the "right" one.

Another issue: non-UML diagrams (that deactivate the uml.service.types plugin) would have no update support at all.
=> Possible? Define a UML-unaware update service in a common plugin, refine the update service in a UML specific profile. Please comment
Comment 2 Ansgar Radermacher CLA 2010-11-26 17:14:46 EST
Moved service to org.eclipse.papyrus.diagram.common (proposed by Remi Schnekenburger)
Comment 3 Ansgar Radermacher CLA 2012-02-23 05:15:58 EST
Fix already applied in nov. 2010