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.
I have a data object and my 'canDelete' method returns true. But I want to put up a different dialog if the user selects delete. I can't seem to do this. The action performer seems to be set on the DeleteAction in ExplorerActions.java and I can't figure out any way to change it, so I can't control the dialog that appears.
Sounds more like enhancement to me (I have changed the issue type). Joe - could you please propose also what the correct behaviour should be if the user selects more nodes? I can't find a way how to do this: sequence of custom confirmation dialogs sounds pretty scary to me.
I also suggest this be marked P4, since as a (nontrivial) API change it cannot be considered for 3.2 unless some existing functionality is critically impacted. (However it already marked 'Dev' so maybe that is not necessary.) The effects of this on scripting and automated deletion of various sorts must also be considered. I agree that being able to modify the UI of node deletion could be useful, but I don't see a simple/obvious solution.
As concern the deletion of mutliple nodes at once there probably has to be some kind of negotiation between the nodes to agree on one question dialog for all of them. But that is far beyond my imagination of what it should be. I guess requirements needed.
Issue #8525 is blocked by this issue.
Target milestone -> 3.3
Unless there is a clear proposal what should the behaviour be I am marking this as LATER. Add comments, proposals etc. and eventually reopen.
x
Target milestone should be determined. If there are any plans for completely new wizard framework this issue should be part of it.
Oops -- I said wizards in my previous comment. I am not yet sure whether it is DataSystem, Nodes, Looks or ...? Anyway we need a specification of the expected behaviour (both UI and API) to be able to resolve this one. If there is none - I am leaving the target milestone set to future.
The ExplorerActions are now replaced by ExplorerUtils and they allow to associate own delete action with explorer panel. This is used by form editor module.