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.
This problem is best described by the following drag and drop scenario: Node "Source" is the dragged node. Node "Target" is the target node which contains several child nodes. It's children factory implements Index, so positioning is supported in drag and drop operations. Case 1: If Source is dropped directly onto Target, without moving over the child nodes of Target, then Source is correctly positioned at the end of the child list of Target. Case 2: If Source is dropped between two of the child nodes of Target, then Source is also correctly positioned. Case 3 (problem): If Source is moved over the child nodes of Target, then dropped directly on Target, then Source is _incorrectly_ positioned at the last hovered "in between" drop location. In the last case, the same result as in the first case is expected.
Verified that this bug is still present in NetBeans 6.8.
which component are you referring to? generic tree or treetable/outline or other?
TreeView. Haven't tested in the OutlineView.
Originally reported in 6.5, and assumed to be valid thereafter. (Version fields may be pushed back but should not be pushed forward.)
I tested it in Files view and I don't see any behavior like this. What is the component that you are demonstrating the usecases? Can you provide sample module that I can run?
Created attachment 98002 [details] Sample Platform application that demonstrates the bug The sample code consists of the following: module1.MyObject: A simple object that is hierarchical. module1.TestNode: A Node implementation for MyObject that provides an Index cookie and drag-drop-support. module1.TestChildren: A Index.KeysChildren implementation for MyObject. module1.TestTopComponent: Opens up a set of nodes in a BeanTreeView that lets you reproduce the bug.
Created attachment 98004 [details] A video demonstrating the bug This is a video demonstrating the bug. Notice that while dragging the selected node, I stop by the indexed position between MyObject 4 and 5, leave the tree with the mouse pointer, then enter the parent node of 4 and 5 and drop it directly there. The expected behavior would be to append the node to the end of the list, but the node is instead inserted at the last visited indexed position.
Created attachment 98005 [details] A video demonstrating the bug Uploaded the correct video.
Shall be better now with core-main#2f3ce070175f
Btw. I cannot see the video.
Did you try the updated attachment? (i accidentally uploaded the wrong video first)
Integrated into 'main-golden', will be available in build *201004270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ User: Log: