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 66942 - [50cat] Inconsitent behavior when trying to copy file or directory on itself
Summary: [50cat] Inconsitent behavior when trying to copy file or directory on itself
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 5.x
Hardware: All Windows ME/2000
: P3 blocker (vote)
Assignee: t_h
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2005-10-17 11:16 UTC by host
Modified: 2008-12-22 10:41 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description host 2005-10-17 11:16:06 UTC
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)?"
Comment 1 David Simonek 2005-10-17 15:17:08 UTC
Passing to explorer, please reassign further if I'm wrong.
Comment 2 Petr Nejedly 2005-10-17 16:21:09 UTC
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).
Comment 3 host 2005-10-17 19:27:36 UTC
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.
Comment 4 Petr Nejedly 2005-10-18 09:22:43 UTC
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
Comment 5 host 2005-10-18 09:35:35 UTC
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... 
Comment 6 Antonin Nebuzelsky 2008-02-07 16:15:14 UTC
Reassigning to new module owner Tomas Holy.
Comment 7 t_h 2008-10-20 11:07:49 UTC
Paste is disabled on leaf nodes, so it cannot be invoked.