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 67751 - Copy in sources and Paste in layer duplicates disk file
Summary: Copy in sources and Paste in layer duplicates disk file
Status: RESOLVED DUPLICATE of bug 72541
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-28 22:59 UTC by pzajac
Modified: 2008-06-19 23:06 UTC (History)
0 users

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 pzajac 2005-10-28 22:59:51 UTC
[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
Comment 1 Jesse Glick 2005-10-28 23:22:59 UTC
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.
Comment 2 Jesse Glick 2008-06-19 23:06:47 UTC
No plans to fix in current impl.

*** This issue has been marked as a duplicate of 72541 ***