Bug 462075 - Support confirmation for remove operation (and others)
Summary: Support confirmation for remove operation (and others)
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 2.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: Next   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2015-03-13 10:51 EDT by Max Schettler CLA
Modified: 2018-08-21 09:51 EDT (History)
2 users (show)

See Also:


Attachments
sample (6.72 KB, application/x-zip-compressed)
2015-03-16 06:57 EDT, Steve Monnier CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Schettler CLA 2015-03-13 10:51:30 EDT
When using the remove operation it is possible to delete the root element. This causes the editor to close. The model itself is not modified, however the representation is lost and the Model Explorer does not allow to expand the model`s resource anymore. A restart of Eclipse is needed to create new representations for the model.
It would be nice to have a confirmation dialog either upon deletion of the root element or as an additional feature for the remove operation that can be enabled by the developer. The second solution might be preferable if there are other use-cases.
Comment 1 Steve Monnier CLA 2015-03-16 06:57:55 EDT
Created attachment 251578 [details]
sample

I added a sample to this bugzilla. It provides a diagram description that only display the model root element. On deletion the popup "Deleted root element" is opened warning that the editor will close.
As you close this dialog the "Save" keybinding and button are disabled because it is linked to the active editor. However, you can still right click on the project and choose save.