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

Bug 348731

Summary: [Project Explorer] Issue when deleting of model
Product: [Modeling] Papyrus Reporter: Sébastien Gérard <sebastien.gerard>
Component: ViewsAssignee: Camille Letavernier <cletavernier>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mathieu.velten
Version: 0.8.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Dialog that is shown when the user tries to delete a file that is opened by the default texteditor (and has unsaved changes) none

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