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

Bug 315305

Summary: [Model explorer] save inactive, although model is dirty
Product: [Modeling] Papyrus Reporter: Ansgar Radermacher <ansgar.radermacher>
Component: CoreAssignee: Cedric Dumoulin <cedric.dumoulin>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cedric.dumoulin, Patrick.Tessier
Version: unspecified   
Target Milestone: 0.7.0   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 320483    
Bug Blocks:    

Description Ansgar Radermacher CLA 2010-06-01 17:11:28 EDT
Build Identifier: Build id: 20100527-0614

The File->Save menu item is inactive if the Papyrus model explorer is active, although the model has been modified. Save is only possible once an element in a diagram is selected.

Reproducible: Always

Steps to Reproduce:
1. Load & modify the model
2. select an element within model explorer
=> save is not possible
Comment 1 Yann Tanguy CLA 2010-06-10 16:34:00 EDT
Cedric, I add you in cc as I'm not quite sure wether this bug relates to the editor or the model explorer ("Modisco" version)
Comment 2 Cedric Dumoulin CLA 2010-07-21 06:45:04 EDT
Model Explorer need to implements the ISaveable interface.
I propose to create a Papyrus Service taking in charge the implementation of this interface. This service will be used by any Eclipse Part whishing to provide save/saveAs actions and dirty state rendering.
The CoreMultiDiagramEditor itself will use this service rather than implementing directly save and saveAs.
This service
Comment 3 Cedric Dumoulin CLA 2010-07-23 09:20:50 EDT
The ModelExplorer now use the SaveAndDirtyService as ISaveable.
The save and saveAs actions are now enable in ModelExplorer.