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

Bug 296158

Summary: [Control Mode] Bug in the save action introduced by the control mode for models with profiles
Product: [Modeling] Papyrus Reporter: Remi Schnekenburger <rschnekenburger>
Component: CoreAssignee: Emilien Perico <emilien.perico>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.9.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 277680    

Description Remi Schnekenburger CLA 2009-11-25 12:33:58 EST
It seems you have already seen some issues with the control mode and profiles, I don't know if this corresponds to this bug.

The control mode introduced a bug in the DiResourceSet. The save action in the editor calls the save method in DiResourceSet. The method save() in DiResourceSet saves the standard resources (Di, notation and main model), then it tries to save additional resources. If a profile is applied to the model, the profile is loaded as an additional resource, but it can't be saved. So, it leads to a IOException.
The resources given from the method getAdditionalResources() should be checked, if they are saveable or not.
Comment 1 Emilien Perico CLA 2009-11-26 03:28:51 EST
Yes Rémi, you're right. I didn't think about profile application. I will fix it as soon as possible.
Besides, as I noticed in the code, we must decide if additional resources can be edited.
Comment 2 Emilien Perico CLA 2009-11-26 05:37:59 EST
For now, additional resources are not saved anymore.
For control mode, only changes in the resource are allowed.
This question is part of the resources management specifications.

We must think about the save problem if additional resources will be edited
Comment 3 Emilien Perico CLA 2010-07-01 08:56:34 EDT
Bug fixed.