Bug 406234

Summary: [Core - ModelSet] Improve the resource handling in ModelSet
Product: [Modeling] Papyrus Reporter: Camille Letavernier <cletavernier>
Component: CoreAssignee: Camille Letavernier <cletavernier>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: papyrus-bugs
Version: 1.0.0Keywords: plan
Target Milestone: M6Flags: cletavernier: luna+
Hardware: All   
OS: All   
Whiteboard: Miscellaneous
Bug Depends on:    
Bug Blocks: 400209, 360092    

Description Camille Letavernier CLA 2013-04-22 12:06:06 EDT
Improve the resource management in the ModelSet:

- Investigate and use the right Save/Load options for all resources (Model + Libraries, Controlled, etc.)
- Correctly handle "demandLoad" exceptions. Avoid keeping (and saving) incorrectly loaded resources. (Might be related to Bug 402042 in which some non-emf resources are loaded and re-serialized, resulting in an empty XMI content)
- ReadOnly resources: see Bug 336811 and Bug 396735
- Add workspace listeners for all resources; not only the IModel resources (Libraries, profiles, controlled models, main IModels, ...). Properly close or reopen the current editor when modifications/deletions happen.
Comment 1 Camille Letavernier CLA 2014-03-13 11:14:03 EDT
> - Investigate and use the right Save/Load options for all resources (Model + Libraries, Controlled, etc.)

Fixed

> - Correctly handle "demandLoad" exceptions. Avoid keeping (and saving) incorrectly loaded resources. (Might be related to Bug 402042 in which some non-emf resources are loaded and re-serialized, resulting in an empty XMI content)

Fixed

> - ReadOnly resources: see Bug 336811 and Bug 396735

Fixed

> - Add workspace listeners for all resources; not only the IModel resources (Libraries, profiles, controlled models, main IModels, ...). Properly close or reopen the current editor when modifications/deletions happen.

Fixed (Although definitely not user friendly).

I close this task. More detailed sub-tasks are already available when necessary.

See: Bug 429239, Bug 323802