Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 7700 - Default for "Delete" resource is yes, it should be no
Summary: Default for "Delete" resource is yes, it should be no
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Simon Arsenault CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 14668
Blocks:
  Show dependency tree
 
Reported: 2002-01-16 09:48 EST by Duong Nguyen CLA
Modified: 2002-09-26 11:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duong Nguyen CLA 2002-01-16 09:48:49 EST
The deletion of a project is a very critical operation. This operation should 
require some serious thought from the user. From the Navigator, one can select 
a model and delete it from the context menu. This is reasonable functionality
Comment 1 Duong Nguyen CLA 2002-01-16 09:58:29 EST
Oops forgot the rest of the Description text ...

What isn't reasonable is that the dialog that confirms the action has "yes" as 
the default.

Steps to repeat:

1. select model in navigator
2. select delete from context menu
3. the dialog in question should appear

Expected results:

- Dialog should either have "no" as the default or have an icon to indicate 
seriousness of the situation.
Comment 2 Simon Arsenault CLA 2002-02-14 17:04:17 EST
The delete confirmation dialog was changed in the 2.0 stream to not delete the 
project's contents by default. User has to check the option in the dialog and 
then press OK to delete contents. This was done back in Dec, 2001 (not sure of 
the exact build day)
Comment 3 Duong Nguyen CLA 2002-08-21 15:52:36 EDT
The original title was mis-leading. Although when a project is deleted, you're 
given the option to keep the contents so it's probably alright to have the YES 
button as the default.

When a file is being deleted, the confirmation dialog should have "NO" as the 
default button.
Comment 4 Tod Creasey CLA 2002-09-24 16:26:08 EDT
We can't set the default button on the MessageDialog due to Bug 14668 which 
requires setFocus to be used when setDefaultButton is called.

If we set focus we break all of the focus/accessibility work done by the the 
sublclasses of MessageDialog.
Comment 5 Tod Creasey CLA 2002-09-26 11:17:42 EDT
Defualt should stay as OK - the user has already been prompted once - asking 
them twice everytime would be annoying.