This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 180055 - Database: New confirmation dialog box for deleting database tables (nodes)
Summary: Database: New confirmation dialog box for deleting database tables (nodes)
Status: CLOSED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P1 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2010-01-31 21:18 UTC by gliesian
Modified: 2011-11-04 17:28 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gliesian 2010-01-31 21:18:33 UTC
When deleting a table via the Database Explorer table node, the user should be prompted with a confirmation dialog box to ensure they want to do actually delete the table.

This is important, because if the user accidently clicked on the wrong table node and did a right-click (popup), delete (menu item)... the table will permanently be removed from the database.
Comment 1 Peter Pis 2010-02-01 03:42:47 UTC
Reassigning.
Comment 2 gliesian 2010-03-06 20:36:43 UTC
If you 'quickly' go to click on the Refresh menu item of a table node and you have the mouse slightly below the menu item, you will accidently click on the Delete menu item.

I did this today and wiped out a table.  [Needless to say, I wasn't too happy with my mistake]

I took the liberty of raising the priority of this  Issue because without a confirmation dialog box, other users could make this same mistake... which happends to be a big one.

Thanks.
Comment 3 Jiri Rechtacek 2010-03-10 06:41:36 UTC
In general, confirmation of deleting nodes was removed historically, based on UI study. Also there is documented in http://netbeans2.org/kb/docs/ide/java-db.html?print=yes#deleting no confirmation dialog.
Anyway, I do understand the problem and the risk of loosing user data and I'm going to set back a confirmation dialog on all db objects where is a risk of loosing data.
Comment 4 Jiri Rechtacek 2010-03-10 11:15:22 UTC
core-main/rev/9cc8dced9486
Comment 5 Quality Engineering 2010-03-12 04:24:57 UTC
Integrated into 'main-golden', will be available in build *201003120200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/9cc8dced9486
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #180055: Added confirmation dialog box for deleting database tables