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 - FilterNode as decorator for FolderNode has problems with multi drag'n'drops
Summary: FilterNode as decorator for FolderNode has problems with multi drag'n'drops
Status: REOPENED
Alias: None
Product: platform
Classification: Unclassified
Component: Nodes (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jan Peska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-12 11:13 UTC by b_agel
Modified: 2014-02-13 13:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Testcase Netbeans Module (6.92 KB, application/zip)
2014-02-13 13:55 UTC, b_agel
Details

Note You need to log in before you can comment on or make changes to this bug.
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?