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 206975 - Specify name of copied file
Summary: Specify name of copied file
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-06 07:55 UTC by Vladimir Riha
Modified: 2012-01-10 09:19 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 Vladimir Riha 2012-01-06 07:55:42 UTC
Not really sure to which product/component this should belong.

Generally, if you copy some file in NetBeans and paste it, it is renamed to "originalName_1". Would be great that instead of this renaming, a dialog was shown (with prefilled originalName_1) and I was able to either just confirm it or to write custom name.
Comment 1 Jaroslav Tulach 2012-01-10 09:10:00 UTC
I would find that behavior annoying. There is going to be new "copy refactoring" (whatever that means) in 7.2.

If you want to play with the code, the change would be somewhere in
http://hg.netbeans.org/main-golden/file/dee0b5da8805/openide.loaders/src/org/openide/loaders/DataFolder.java#l1387
Comment 2 Vladimir Riha 2012-01-10 09:19:47 UTC
OK, if you think so. But I can't imagine why it would be more annoying than current approach since the new name with "_1" is not really usefull and I guess a lot of users rename it instantly anyway (for example for html, css, js files and so on)