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.
1. Select some file in Explorer 2. Use Delete-key or pop-up menu | Delete 3. File is removed without any warning or confirmation dialog [Build 1053]
File | Preferences | System Settings | Confirm Delete is set to True. If this setting is set to False and then back to True the problem is fixed.
The debugger is causing the problem. Here is the stacktrace that disables the confirmation dialog: at org.openide.explorer.ExplorerActions.setConfirmDelete(ExplorerActions.java:108) at org.openide.explorer.ExplorerPanel.setConfirmDelete(ExplorerPanel.java:195) at org.netbeans.modules.debugger.support.nodes.DebuggerView.<init>(DebuggerView.jav a:67) Please change this code. My suggestion would be to use your own ExplorerAction object (I guess that DebuggerView is subclass of ExplorerPanel): // add private variable private ExplorerActions actions = new ExplorerActions (); protected void componentActivated () { actions.attach (getExplorerManager ()); } protected void componentDeactivated () { actions.detach (); } Ok?
Gaak. We *really* need a better way to do this. IMHO ExplorerActions/DeleteAction should never display a dialog, this should be a function of the DataNode.delete, and there should be some standard way in the APIs to tell if something is being called interactively or not.
Resolved for 3.3.x or earlier, no new info since then -> closing.