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

Bug 320483

Summary: [Core] Put save, saveAs and dirtyState in a separate service
Product: [Modeling] Papyrus Reporter: Cedric Dumoulin <cedric.dumoulin>
Component: CoreAssignee: Cedric Dumoulin <cedric.dumoulin>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.7.0   
Target Milestone: 0.7.0   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 315305    

Description Cedric Dumoulin CLA 2010-07-21 06:43:43 EDT
Actually, the save and saveAs implementation is done in the CoreMultiDiagramEditor.
But, other parts (like model explorer) need to be able to perform save and saveAs and to show the dirtyState.

I propose to put the save, saveAs and dirtyState implementations in a separate class and to register it as a Papyrus service.
This service will centralize the save and saveAs actions.
This service will be available to any parts wishing to use it.
Comment 1 Cedric Dumoulin CLA 2010-07-23 09:19:54 EDT
Service ISaveAndDirtyService is created and registered in the ServiceRegistry.
It can be retrieved and used from various parts.