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 180227 - if i copy and paste a directory containing java files -- they are refactored
Summary: if i copy and paste a directory containing java files -- they are refactored
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: -S1S-
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
: 127385 (view as bug list)
Depends on: 204608 206623
Blocks:
  Show dependency tree
 
Reported: 2010-02-03 12:18 UTC by emiddio
Modified: 2012-01-03 11:24 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description emiddio 2010-02-03 12:18:19 UTC
i cannot copy a directory tree without getting contained java files refactored -- i have to do it outside of netbeans.

i am using the favorites tab to select the directory to be copied.


there is a project i created at the top of a tree of source code -- of which
this directory is contained within.
Comment 1 Tomas Zezula 2010-04-01 09:08:28 UTC
This will probably require an UI (dialog) to disable refactoring which will break the workflow for most of users who are using the refactoring.
Adding UI expert to cc.
Comment 2 Ondrej Langr 2010-04-01 15:18:53 UTC
Can you please in a little more detail describe why you need to copy the directory without refactoring classes in it?
Comment 3 emiddio 2010-04-01 18:10:49 UTC
i have reason to do it all the time -- maybe i want a simple backup of some files for a while, want to remove some source from a project by moving the files to another directory -- and do not want any refactoring;

if can not do with netbeans -- must use OS commands outside of netbeans to do it;

my opinion is that any refactoring should be an option -- not the norm.

thanks
Comment 4 Ondrej Langr 2010-04-06 12:52:25 UTC
It has 2 sides. If we allow to disable refactoring when copying (will enable dialog for this action), we'll make this possible, but on the other hand will make the quick drag&drop process require a dialog to be completed. 

However, I've checked that for Move/Copy a single file, we already do require the dialog .. so for the sake of consistency, it's OK to require it for a (IMHO) less frequent action such as copy folder.
Comment 5 Jan Becicka 2011-10-11 12:31:27 UTC
Depends on copy refactoring (multiple files)
Comment 6 Jan Becicka 2011-10-11 14:57:33 UTC
*** Bug 127385 has been marked as a duplicate of this bug. ***
Comment 7 Ralph Ruijs 2012-01-03 11:24:20 UTC
Fixed by Issue #204608
changeset   : c6719c6c7354