Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317430 - [ModelSet] Allow to have a Model representing 'additional resources'
Summary: [ModelSet] Allow to have a Model representing 'additional resources'
Status: CLOSED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Cedric Dumoulin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 335187
  Show dependency tree
 
Reported: 2010-06-21 08:48 EDT by Cedric Dumoulin CLA
Modified: 2013-03-22 12:49 EDT (History)
2 users (show)

See Also:


Attachments

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