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.
Try to refactor (rename) package name for a netbeans module action. Dependant class rename correctly. layer.xml and manifest.mf not renamed at all. Info: ------ Netbeans 5.0 (build 200601251500) jdk 1.5.0 How to reproduce: ------------------ 1- Create new netbeans module project (accept default package name or enter your own) 2- Create new action class (accept default or enter your own name) 3- Refactor the package by renaming it to somthing else. 4- layer.xml file is moved to new package directory. manifest.mf updates new location of layer.xml 5- netbeans fails to rename the action class name in the layer.xml file Expected Behavior: ------------------ netbeans should rename the package name instances in layer.xml as well
yup, that's probably not implemented.
additionally the Move Class refactoring doesn't work either for layer content. (Rename of packages is technically a Move Class refactoring) The challenge here is to make it work across projects, the class can be moved to a different project/module, meaning the layer content needs to be dragged along.
-> future.
*** Issue 77216 has been marked as a duplicate of this issue. ***
*** Issue 79269 has been marked as a duplicate of this issue. ***
*** Issue 144150 has been marked as a duplicate of this issue. ***
*** Issue 151116 has been marked as a duplicate of this issue. ***
NBM refactorings are barely supported and will probably be dropped in the future with a move to annotations.
No plans to work further on layer refactorings; time would be better spent defining layer-generating annotations. In the particular case of actions, this already works.