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: | DnD: Drop destination ignored | ||
---|---|---|---|
Product: | platform | Reporter: | pgriebel <pgriebel> |
Component: | Explorer | Assignee: | Jiri Rechtacek <jrechtacek> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Windows ME/2000 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | binary patch applicable in lib/patches |
Description
pgriebel
2003-11-17 15:06:38 UTC
Peer, the findDropedNodes() asks the parent node for index on which droped node is placed. See Children's javadoc of findChild(String name), it proposes implement more advanced way to find a child. It's a one of places which can improve DnD behavior. You could extend you parent node children and provide better findChild() method. On the other hand, a name is lack of information to return a right node. I try use a util method for finding child, attach a jar patch to this issue. Could you ensure if it would fix this issue? Thanks Jiri, I know the findChild() method. But as you stated the name is not enough to identify destination. But I would be very glad to try your patch and post the results. Created attachment 12219 [details]
binary patch applicable in lib/patches
I attached the patch, it finds pasted nodes in folder and trying to select it. It should work better then now. Please, test it. Thanks Congratulations! The pasted nodes are now identified correctly. The pasted nodes are selected (mostly). The dropped nodes are not selected when I perform a drag to a different explorer. But nonetheless -thanks! Fine, I did more work on selecting nodes which are moved from one folder to other on. It worked more better. It's fixed in maintrunk. closed |