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.
Delete action does not remove appropriate entries from layer.xml, so I decided to try "Safely delete" from refactoring submenu. No changes were made to layer.xml anyway, file has been deleted and following exception has been thrown: java.io.FileNotFoundException: Actions/Build/org-yourorghere-module11-SomeAction.instance at org.netbeans.modules.apisupport.project.layers.WritableXMLFileSystem.delete(WritableXMLFileSystem.java:431) at org.openide.filesystems.AbstractFileObject.handleDelete(AbstractFileObject.java:550) at org.openide.filesystems.AbstractFolder.delete(AbstractFolder.java:926) (whole stack trace attached) Steps to reproduce: ------------------- 1) Create a NBM project 2) Add an action (ie. from context menu of a source package) 3) Try to invoke "Refactor | Safely delete" from <you_action_name>.java 's context menu --> Exception [NB 5.0 fcs (200601251500), JDK 1.6.0rc - b69, solaris 10/sparc]
Created attachment 28880 [details] exception stack trace
In fact it deletes the layer entries it should (minus ordering attrs in Menu/** which should probably be removed too), but seems to be trying to delete the same file twice, perhaps?
fixed. in trunk and in update 1 branch.
Marking as verified. However, there are two other issues: - Ordering entries are not deleted (issue 72788) - Rafactor|Undo does not regenerate deleted entries inside layer.xml (issue 74069) --------- NetBeans IDE Dev (Build 200603270859) 1.6.0-beta2; Java HotSpot(TM) Client VM 1.6.0-beta2-b76 SunOS version 5.10 running on sparc en (nb); ISO646-US