Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348731 - [Project Explorer] Issue when deleting of model
Summary: [Project Explorer] Issue when deleting of model
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Views (show other bugs)
Version: 0.8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Camille Letavernier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-08 09:23 EDT by Sébastien Gérard CLA
Modified: 2014-03-26 05:08 EDT (History)
1 user (show)

See Also:


Attachments
Dialog that is shown when the user tries to delete a file that is opened by the default texteditor (and has unsaved changes) (18.74 KB, image/png)
2013-03-18 09:54 EDT, Ansgar Radermacher CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sébastien Gérard CLA 2011-06-08 09:23:53 EDT
When deleting a model within the project explorer, if the model is itself open, it should be first closed (sithout saing modification if any) and then be deleted.
Comment 1 Ansgar Radermacher CLA 2013-03-18 09:51:33 EDT
Current behavior (0.10.X): file deletion is always possible without warning, even if editors are open. Editor is not closed, but the user is notified about resource deletion when he enters the editor.

Textual editors are closed, when their underlying resource is deleted (or the project in which they are defined is closed!). In addition, there is a check before deletion if editors with unsaved changes are open (no warning, if they are just open), as shown in the attachment
For a consistent behavior with textual editors, Papyrus should behave in the same way as textual editors.
Comment 2 Ansgar Radermacher CLA 2013-03-18 09:54:30 EDT
Created attachment 228564 [details]
Dialog that is shown when the user tries to delete a file that is opened by the default texteditor (and has unsaved changes)
Comment 3 Camille Letavernier CLA 2014-03-26 05:08:12 EDT
Since Kepler SR0, the related editors are automatically closed if the files are deleted, unless there are unsaved changes, in which cases there is a user warning.

I close this task