Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320483 - [Core] Put save, saveAs and dirtyState in a separate service
Summary: [Core] Put save, saveAs and dirtyState in a separate service
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 0.7.0   Edit
Assignee: Cedric Dumoulin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 315305
  Show dependency tree
 
Reported: 2010-07-21 06:43 EDT by Cedric Dumoulin CLA
Modified: 2010-07-23 09:19 EDT (History)
0 users

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-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.