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 70972 - [layer] problem with copy-pasting files
Summary: [layer] problem with copy-pasting files
Status: VERIFIED 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: 72507
Blocks:
  Show dependency tree
 
Reported: 2006-01-04 07:40 UTC by Martin Krauskopf
Modified: 2006-10-23 16:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Working patch; unit test is OK but live behavior not due to MFS wrapping (9.88 KB, patch)
2006-02-10 01:55 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Krauskopf 2006-01-04 07:40:44 UTC
1) Create new module
2) Expand <this layer in context>
3) Run "Action Wizard" (just use default values, just fill up "Display Name")
4) Go to <this layer in context> --> Menu Bar --> File
5) Select some separator, press Ctrl+C
6) Select <this layer in context> --> Menu Bar --> File, press Ctrl+V

Take a look into generated content in layer.xml.
Presuambly(?) unneeded "url" attribute for generated Separator_xxx.instance. And
org.yourorghere.moduleXX.Separator_xxx empty file is created.

Not sure if it concerns only Separator instances.
Comment 1 Jesse Glick 2006-01-04 18:54:46 UTC
Yeah, file operations on instances don't really work: it is trying to actually
copy the byte[] contents and Map<String,Object> attributes, which cannot work
reliably. May be able to implement AbstractFileSystem.Transfer to handle this
scenario properly.
Comment 2 Martin Krauskopf 2006-01-10 12:19:52 UTC
More over one would probably tends to delete the file created on a disk. Which
is OK on the first sight - no error reported so far. But after deploying a
module there will be a broken reference. So e.g. menu item will not work.
Comment 3 Jesse Glick 2006-02-10 01:52:59 UTC
Don't think it's fixable. No apparent way to override copy/move behavior because
of weirdness in MultiFileSystem.
Comment 4 Jesse Glick 2006-02-10 01:55:56 UTC
Created attachment 28821 [details]
Working patch; unit test is OK but live behavior not due to MFS wrapping
Comment 5 Jesse Glick 2006-02-10 18:40:36 UTC
x
Comment 6 Jesse Glick 2006-02-10 18:40:53 UTC

*** This issue has been marked as a duplicate of 72541 ***
Comment 7 Tomas Danek 2006-02-13 11:27:02 UTC
can be. verified duplicate