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

Bug 270156

Summary: pressing enter on delete confirmation dialog animates the "cancel" button
Product: [Eclipse Project] JDT Reporter: Ryan Fong <rfong>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: trivial    
Priority: P3 CC: markus.kell.r
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
image of dialog none

Description Ryan Fong CLA 2009-03-26 13:47:28 EDT
Created attachment 129993 [details]
image of dialog

Build ID: I20090313-0100

Steps To Reproduce:
* Select a Java method from the outline.
* Select or press "Delete".
* The "Confirm Delete" dialog appears and the "OK" button has focus.
* Press the "Enter" button.  At this point, the "OK" action is used but the "Cancel" button animates as if it were clicked.

More information:
Comment 1 Markus Keller CLA 2009-03-26 14:40:39 EDT
The "animation" you see is that we disable the Cancel button while the deletion is being performed. For long-running operations (e.g. when you delete multiple files), it's important to have the cancel buttons disabled so that you know that canceling is not possible.

We could try to only disable the button after a certain delay, but that opens a whole range of possible follow-up problems that I don't think this is important enough to spend resources on.
Comment 2 Ryan Fong CLA 2009-03-26 14:48:49 EDT
Hm, I never deleted more than one thing at at time before.  That's probably b/c our Eclipse CVS integration doesn't work so I have to delete via TortoiseCVS. This resolution sounds reasonable to me.