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.
[200508301800] 1) Add a file to layer.xml 2) Edit the file -> save it 3) delete the file from file system 4) Try open the file from layer.xml The FileNotFound exception was thrown
Created attachment 24421 [details] exception
Uh... right. Because when you deleted the disk file from your project, you rendered the layer invalid. It would throw the same FNFE in the actual app if you tried to run it. I could try to listen in case the user deletes a project file which corresponds to a layer file and quietly remove the url="..." attribute, perhaps, or delete the whole <file>. Not sure if that's what you would expect to happen. Getting into refactoring territory.
You don't need to delete the file. Add record to layer xml: <file name="sadasd" url="aaa/bbb"/> After that try open the file in layer.xml view. The same exception was thrown.
Yes, well adding a file specifying a URL which does not exist is also an error which would throw a FNFE at runtime. So don't do that. I can add a localized annotation to the FNFE, I guess, which would explain why the user made a mistake and how to correct it.
Yes, it is good idea to add the localized message.
Broken links is shown in layer view for file with invalid url. nice:-).
Uh, nothing was fixed since you reported this. Maybe you were thinking of *.shadow files.
*** This issue has been marked as a duplicate of 72541 ***
verified