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.
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.
Reassigning.
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.
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.
core-main/rev/9cc8dced9486
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