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

Bug 317430

Summary: [ModelSet] Allow to have a Model representing 'additional resources'
Product: [Modeling] Papyrus Reporter: Cedric Dumoulin <cedric.dumoulin>
Component: CoreAssignee: Cedric Dumoulin <cedric.dumoulin>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: emilien.perico, mathieu.velten
Version: 0.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 335187    

Description Cedric Dumoulin CLA 2010-06-21 08:48:22 EDT
Additional resources are the resources indirectly referenced by one of the main Resources (uml, notation, sash).
It could be interesting to have a model representing this additional resources. The 'additional model' could allow to save the additional resources.
The choice to save or not additional resources should be set in preferences.
This functionality is required by the ControlMode.
Comment 1 Cedric Dumoulin CLA 2010-09-17 07:11:38 EDT
A possible solution can be:
- have a IModel managing AdditionalResources (class AdditionalResources implements IModel)
- In AdditionalResources, define required methods 
	+ for example: addResourceToSave(Resource) // Add/Register a resource that will be saved when the model is save)
	+ when AdditionalResources.save() is called, save the registered resources
	
ControlMode can then register the resources that it needs to save. It do it when it encountered such resource (the IModel can be retrieved from the ModelSet which can be retrieved as a Service).
The registered resources will be saved when all the model are saved (when user do a save).

Another solution is to define precisely what is an 'Additional Resource', and implement an algorithm that save them when other Model are saved.
Comment 2 Emilien Perico CLA 2010-12-20 04:54:58 EST
Additional resources are now managed from an IModel
Comment 3 Camille Letavernier CLA 2013-03-22 12:49:23 EDT
> Additional resources are now managed from an IModel

I close the task