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.

Bug 241758

Summary: FilterNode as decorator for FolderNode has problems with multi drag'n'drops
Product: platform Reporter: b_agel
Component: NodesAssignee: Jan Peska <JPESKA>
Status: REOPENED ---    
Severity: normal CC: b_agel
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Testcase Netbeans Module

Description b_agel 2014-02-12 11:13:34 UTC
Overview:
FilterNode is used as a decorator for FolderNode and moved subfolder nodes are not displayed after drag'n'drop.

Steps to Reproduce:
1) Use FileBasedFileSystem (any other should also work) and a simple FilterNode as a decorator for a FolderNode. In the corresponding DataFolder drag'n'drop support is enabled.

2) From root create the folders /f1, /f2 and /f3

3) move /f2 to /f1 results in /f1/f2 and /f3

4) move /f3 to /f1/f2 

Actual Results:
/f1/f2
(/f3 is not displayed as a subfolder of /f1/f2), but /f3 is correctly handled within the filesystem

Expected Results:
/f1/f2/f3

Additional Information:
- The changes are correctly dispatched to the underlying filesystem. After application restart all folders are displayed fine.
- Similar problems occur when a folder with subfolders is moved.
Comment 1 Ondrej Vrabec 2014-02-13 10:19:08 UTC
I tried in the Favorites view which also consists of FilterNodes on top of DataFolders and did not get the same results. Everything worked and i got f1/f2/f3 without any problem.
Attach a sample platform app demonstrating the problem, thanks.
Comment 2 b_agel 2014-02-13 13:55:58 UTC
Created attachment 145147 [details]
Testcase Netbeans Module

Here is a test module registering a NodeFactory for projectType="org-netbeans-modules-java-j2seproject".
With it I can reproduce the above behavior ... perhaps I misused something?