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 32904 - System->Confirm Delete setting should not be available
Summary: System->Confirm Delete setting should not be available
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2003-04-15 14:45 UTC by pzajac
Modified: 2010-04-02 15:57 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2003-04-15 14:45:51 UTC
When is "System->System Settings->Confirm delete"
 setting setted to 'false' the confirmation dialog
won't be shown on delete any dataObject.
Comment 1 Jesse Glick 2003-04-18 16:07:51 UTC
So...what's the bug?! You ask not to have to confirm deletions, and NB
then doesn't.
Comment 2 pzajac 2003-04-22 09:25:46 UTC
From help:

To configure system settings through the Options window:
From the main window, choose Tools   Options.
In the Options window, expand IDE Configuration   System.
Select System Settings.
On the Properties tab, modify the properties to your preferred settings.
Confirm Delete. If True, opens a Confirm Deletion dialog box when you
attempt to delete an item. 

I think that item is DataObject in explorer. IMHO disable delete
confirmation dialog is nonsense when you cannot perform undo of delete. 
The "Confirm delete" property should be removed from settings. 
Comment 3 Jesse Glick 2003-04-22 15:48:51 UTC
Maybe. Anyway the setting is currently behaving as designed, and as it
has behaved forever as far as I know. Bring it up on nbui.
Comment 4 pzajac 2003-05-19 16:21:27 UTC
*** Issue 33566 has been marked as a duplicate of this issue. ***
Comment 5 Peter Zavadsky 2003-05-20 14:52:20 UTC
It doesn't belong to actions. Delete action is callback, important is
the performer which is set (for this cases probably) by
ExplorerActions. Ressigning..

To the issue. It seems to me there is a bound property confirmDelete
(in ExplorerActions), which is probably set only for the main
NbExplorer from core. For other instances of explorer it is probably a
problem, but I didn't have a closer look at it, so the last sentence
could be wrong.
Comment 6 Jesse Glick 2003-05-20 15:02:38 UTC
Please do not confuse this issue with issue #33566. This is a UI
request only, not a code bug. Peter's last comment applies to #33566.
Comment 7 Antonin Nebuzelsky 2008-02-07 16:03:16 UTC
Reassigning to new module owner Tomas Holy.
Comment 8 Jesse Glick 2008-04-08 17:55:04 UTC
The setting is no longer available, but I think the IDE still behaves poorly here. A given explorer view can decide
whether or not to show the dialog, but I don't think a given node can. Probably the global dialog should be turned off
entirely, and particular nodes which want to bring up a dialog when destroy() is called can do so.
Comment 9 Jaroslav Tulach 2010-04-02 15:57:05 UTC
Views can decide individually.
Nodes can influence the behavior with customDelete property:
http://bits.netbeans.org/dev/javadoc/org-openide-explorer/architecture-summary.html#property-customDelete
There is also the extended delete interface:
http://bits.netbeans.org/dev/javadoc/org-openide-explorer/org/openide/explorer/ExtendedDelete.html