Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315360 - [Eclipse Navigator] Deleting .di file
Summary: [Eclipse Navigator] Deleting .di file
Status: RESOLVED DUPLICATE of bug 313229
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.7.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-02 05:12 EDT by Tatiana Fesenko CLA
Modified: 2013-03-08 06:04 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tatiana Fesenko CLA 2010-06-02 05:12:51 EDT
Delete .di file -- .notation and .uml files will be deleted as well. The problem is that the dialog asks 'Are you sure you want to delete .di file from the file system'. The messages asks about only file, but three files are deleted in fact, including .uml model.

There is a button 'Preview>', calling it will display an dialog listing all the files are to be deleted. But I really not easy to notice it.

This operation cannot be rolledback, it no way to make 'Undo'.The user should at least be alerted at the main dialog that two other files will be deleted as well. And better if the user is asked if he wants to delete them.
Comment 1 Tatiana Fesenko CLA 2010-06-02 05:44:13 EDT
Steps to reproduce (special for Cedric :) ):

1.Select .di file.
Press 'Delete' key on the keyboard.

or
2. Select .di file
Open context menu of the .di file. Invoke 'Delete' action from the context menu.
Comment 2 Cedric Dumoulin CLA 2010-06-02 06:09:43 EDT
This hapen in the Eclipse Navigator and is an Eclipse behavior, not a Papyrus one. Not sure if we can provide a solution for that.
Comment 3 Tatiana Fesenko CLA 2010-06-02 09:01:51 EDT
(In reply to comment #2)
> This hapen in the Eclipse Navigator and is an Eclipse behavior, not a Papyrus
> one. Not sure if we can provide a solution for that.

The functionality to delete .notation and .uml files is implemented by Papyrus. 
See org.eclipse.papyrus.navigator.internal.ltk.DeleteModelParticipant and org.eclipse.papyrus.navigator.internal.ltk.ModelParticipantHelpers classes.
Comment 4 Camille Letavernier CLA 2013-03-08 06:04:46 EST
Duplicate of Bug 313229, which is fixed.

*** This bug has been marked as a duplicate of bug 313229 ***