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.
Builds 200408301800, jdk1.5.0-b63 Steps: - select several java file in the project view and invoke copy action (ctrl-C, from popup menu) - select destination folder and invoke popup menu Paste-> => you should see several copy actions, depends on how many files you select in the first step Note: if you invoke paste (ctrl-v) action, only the first file is copied.
Some kind of problem in PackageViewChildren, I presume.
Furthermore, after I copied two files, hit Ctrl-V to paste into another package, saw only one file copied, deleted it, and changed selection in the Explorer (all using KB, not mouse), I started getting an AssertionError which I will attach. It kept on popping up every time the Projects tab got focus. Closing and reopening the Projects tab did not help. I had to shut down the IDE to make it stop.
Created attachment 17250 [details] Log file showing assertion errors
*** Issue 48240 has been marked as a duplicate of this issue. ***
Tomas, this looks like your favourite area. Thanks.
Ok, I will firstly write a test for it. I've found 4 valid use cases: 1) 1 Package copied/moved into other source root. 2) More packages copied/moved into other source root. 3) 1 file copied/moved into package. 4) More files copied/moved into package. But I am not sure about this one, is it supported or not? 5) File(s) and package(s) copied/moved into other source root (the files go into the default package) Ugly.
I've talked about the case 5) with Petr and we have found it very confusing and we have decided not to support it.
*** Issue 48256 has been marked as a duplicate of this issue. ***
Checking in project/src/org/netbeans/spi/java/project/support/ui/PackageRootNode.java; /cvs/java/project/src/org/netbeans/spi/java/project/support/ui/PackageRootNode.java,v <-- PackageRootNode.java new revision: 1.11; previous revision: 1.10 done Checking in project/src/org/netbeans/spi/java/project/support/ui/PackageViewChildren.java; /cvs/java/project/src/org/netbeans/spi/java/project/support/ui/PackageViewChildren.java,v <-- PackageViewChildren.java new revision: 1.34; previous revision: 1.33 done Processing log script arguments... More commits to come... Checking in project/test/unit/src/org/netbeans/spi/java/project/support/ui/PackageViewTest.java; /cvs/java/project/test/unit/src/org/netbeans/spi/java/project/support/ui/PackageViewTest.java,v <-- PackageViewTest.java new revision: 1.13; previous revision: 1.12 done
Verified - 200410070525