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.
[200510261800] Steps to reproduce: 1) Create NetBeans module project with root package 'a'. The layer.xml is in package 'a' 2) Create a file in package a.b 3) Perform copy on the file and past in layer view 4) The file is copied into folder 'a'. It is not necessary to copy the file. The developer expects that the file rests in a.b folder
apisupport is not given any opportunity to influence this behavior. It is handled by the original file, by creating a new layer file, opening an output stream, and copying the bytestreams to the new file. apisupport just sees a request to create a new layer file, followed by a request to write a byte array to it; it is not notified of the origin of the request. There might be some trick that would find the original file in most cases, e.g. examining the clipboard. Or if the project did not have an enormous source tree, could simply scan it for files with matching byte contents, and assume that any unique match was the origin. Will not try to do tricks like this for 5.0, however.
No plans to fix in current impl. *** This issue has been marked as a duplicate of 72541 ***