Bug 270183 - [Undo] Undo resources
Summary: [Undo] Undo resources
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows Vista
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-26 17:07 EDT by Valeriy Pashnev CLA
Modified: 2019-09-06 16:15 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Valeriy Pashnev CLA 2009-03-26 17:07:51 EDT
Sometimes when I try to undo edited text, it is undoing file resources. Perhaps it is fine feature to undo resources sometimes. But why doesn't it ask permission to undo file resources? It always asks confirmation if I want to delete file but it asks nothing when I undo resources by mistake.
Comment 1 Paul Webster CLA 2009-03-30 13:57:12 EDT
Hmmm, isn't this related to the undo context switching between the editor one and the workbench one?

PW
Comment 2 Susan McCourt CLA 2009-03-31 13:07:04 EDT
If your focus is in the editor and an undo is going to cause other side effects (for example, undoing a refactoring that affected other files), you will be prompted.  

If your focus is in the project explorer/package explorer/resource navigator, then undo applies to the operations there.  You generally won't be prompted, although we have some cases where we prompt when it will cause a delete.

What is the specific operation that you would expect to be prompted for?  Is data being lost or was it just a surprise that something happened?
Comment 3 limscoder CLA 2010-12-17 12:34:54 EST
I have had this same problem. What happens is that the Project Explorer has focus, but you don't realize it because the difference between focused/unfocused panels is only a very subtle change to the tab bar style. You think the editor has focus and you do a ctrl-z to undo, but since the Project Explorer has focus, a copy/delete/create file is undone without any prompting, and you've unintentionally lost data.

I think any undo that triggers a resource deletion should have a confirm dialog, regardless of which panel currently has focus. Changing the view to make the focus/unfocus panel more obvious would also help, but I imagine that should be a different ticket.
Comment 4 Eclipse Webmaster CLA 2019-09-06 16:15:07 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.