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.
If you select a file press CTRL-C and then CTRL-V nothing happens. If you do the same on directories a warning message appears "Cannot copy XYZ: The destination folder is the same as the source folder." Here the behavior should not be different but identical. Hence you should also get either - the same message for files too or - (even better) a message "File/Directory with name XYZ already exists. Do you want to insert is as XYZ_1)?"
Passing to explorer, please reassign further if I'm wrong.
Nothing wrong, paste on file is disabled, so Ctrl+V does nothing at all (no action gets performed and you can't select that item from popup menu either).
I reopened this issue as an enhancement and not as an defect: True, there is no exception, so it is not really a defect. But still, please read my original report again carefully: I meant to say that files and directories are treated differently. And I believe (and as the vote for this issue shows, at least one other person too :-)) that this should be changed. The way I propose it to be is described in my firsat comment.
I did read it carefully before. But what you do is to propose paste action being enabled on file nodes. I strongly disagree with that, it is even less intuitive. What should happen when user pastes file A over file B? What does the user think it will happen? Reassigning to our HIE for opinion. Note: for your use case, there is simple and quite obvious scenario: Ctrl+C LeftArrow Ctrl+V
The thing is that there is a different handling of directories and files and that is basically the main point I want to make: It is not intuitive that you get a message in case of directories and nothing in case of files. I believe the second proposal is sound because it is also handled in this way too in other applications. To answer your questions I answer them as I would naively expect the behavior (and I asked here two colleagues who agree here): If you have copied file A and then select B and then try to paste file A, now you would still get a message "File A exists. Should I paste it as A_1?" At least in our opinion that makes much sense. Let's see what your HIE says...
Reassigning to new module owner Tomas Holy.
Paste is disabled on leaf nodes, so it cannot be invoked.