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 48222 - Multiple Copy action in the Paste->Copy popup menu
Summary: Multiple Copy action in the Paste->Copy popup menu
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 48240 48256 (view as bug list)
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-08-31 11:48 UTC by Marek Grummich
Modified: 2006-03-24 10:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file showing assertion errors (156.83 KB, text/plain)
2004-08-31 13:43 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Grummich 2004-08-31 11:48:12 UTC
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.
Comment 1 Jesse Glick 2004-08-31 13:41:14 UTC
Some kind of problem in PackageViewChildren, I presume.
Comment 2 Jesse Glick 2004-08-31 13:43:11 UTC
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.
Comment 3 Jesse Glick 2004-08-31 13:43:42 UTC
Created attachment 17250 [details]
Log file showing assertion errors
Comment 4 Jesse Glick 2004-08-31 15:18:28 UTC
*** Issue 48240 has been marked as a duplicate of this issue. ***
Comment 5 Petr Hrebejk 2004-08-31 15:28:10 UTC
Tomas, this looks like your favourite area. Thanks.
Comment 6 Tomas Zezula 2004-08-31 16:59:50 UTC
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.
Comment 7 Tomas Zezula 2004-08-31 17:29:46 UTC
I've talked about the case 5) with Petr and we have found it very
confusing and we have decided not to support it.
Comment 8 Jesse Glick 2004-08-31 17:55:19 UTC
*** Issue 48256 has been marked as a duplicate of this issue. ***
Comment 9 Tomas Zezula 2004-09-01 08:38:07 UTC
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
Comment 10 Marek Grummich 2004-10-07 11:22:23 UTC
Verified - 200410070525