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: | Incorrect placement of dropped node | ||
---|---|---|---|
Product: | platform | Reporter: | toker5 <toker5> |
Component: | Nodes | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Sample Platform application that demonstrates the bug
A video demonstrating the bug A video demonstrating the bug |
Description
toker5
2009-05-29 12:10:37 UTC
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: |