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.
Summary: | ExTransferable.addTransferListener doesn't detect end of DnD operation | ||
---|---|---|---|
Product: | platform | Reporter: | err <err> |
Component: | Nodes | Assignee: | Ondrej Vrabec <ovrabec> |
Status: | NEW --- | ||
Severity: | normal | CC: | jtulach |
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
err
2015-04-09 17:42:16 UTC
Also fails in dev build Product Version: NetBeans IDE Dev (Build 20150401-09512dd8aa7b) Updates: Updates available Java: 1.8.0_40; Java HotSpot(TM) 64-Bit Server VM 25.40-b25 Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b26 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) The listener is useless and very ancient IMO, i have found no usage of it throughout NB codebase. I don't even know when accepted/rejected should be called, do you? Should it be called when you drag over a node that accepts/does not accept the drop? Or should it be called when the user releases mouse over drop target? Any opinion? Maybe the best fix is to remove the note from the JavaDoc? I favor removing the note from JavaDoc :-) (In reply to Ondrej Vrabec from comment #2) > Should it be called when you drag over a node that > accepts/does not accept the drop? Or should it be called when the user > releases mouse over drop target? Any opinion? I assumed it would be notified at mouse release. > > Maybe the best fix is to remove the note from the JavaDoc? I have done little UI programming, I'm not sure of the utility. If it is removed, then there are several things that should be deprecated; for example ExTransferable.addTransferListener(TransferListener l) and possibly TransferListener Now the only method in TransferListener that makes sense and works is "ownershipLost". That is called when content of the clipboard is released (i think). So what i'm suggesting is: 1) removing the note from Node's JavaDoc 2) deprecate accepted, rejected methods in TransferableListener with a note that they're useless anyway. |