Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315305 - [Model explorer] save inactive, although model is dirty
Summary: [Model explorer] save inactive, although model is dirty
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 0.7.0   Edit
Assignee: Cedric Dumoulin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 320483
Blocks:
  Show dependency tree
 
Reported: 2010-06-01 17:11 EDT by Ansgar Radermacher CLA
Modified: 2010-07-23 09:20 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 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.