| Summary: | Deletion of .di file deletes .uml as well | ||
|---|---|---|---|
| Product: | [Modeling] Papyrus | Reporter: | Ansgar Radermacher <ansgar.radermacher> |
| Component: | Core | Assignee: | Tristan Faure <faure.tristan> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | cletavernier, tatiana.fesenko, thibault.landre |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 402036 | ||
|
Description
Ansgar Radermacher
Not a bug, its the expected behavior (I turn this into enhancement request). (In reply to comment #1) > Not a bug, its the expected behavior (I turn this into enhancement request). I disagree. The worst thing a tool can do is to accidently destroy your data. The minimum is to show a explicitly and BIG what the action is going to do since this is not the standard behavior of a tool. In fact using the preview button of the deletion dialog allows you to uncheck the associated model file. Like Yann says, it is the expected behavior. But I agree that the user should be aware of what he is really destroying and the preview button is not enough. Still an enhancement though. (In reply to comment #3) > In fact using the preview button of the deletion dialog allows you to uncheck > the associated model file. > Like Yann says, it is the expected behavior. > > But I agree that the user should be aware of what he is really destroying and > the preview button is not enough. > > Still an enhancement though. I agree that the preview is a good solution, but it should be openend by default. In addition (or alternatively, if it's non-trivial to open the preview by default), the dialog should have a text like "Attention: additional files will be deleted! Consult preview for details.". I think (hope), the additional text is easy to add and we can close the bug. This is a quite old bug... yet, I think it is quite important to avoid that people accidently delete their models. The "Papyrus model deletion" should only occur, if the user invokes the delete command on a Papyrus resource itself, i.e. on an element in the project explorer that encapsulates the.uml/.notation/.di as children, not if the user selects one of the three files within the resource. The model deletion should also not occur, if the delete command has been issued from a view that does not show the files in a hierarchical way, e.g. the PackageExplorer. In this case, the user does "see" that there is a kind of hierarchy and thus does not expect that the delete operation does something in addition to deleting the current file. Fixed in r10302 *** Bug 315360 has been marked as a duplicate of this bug. *** |