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.
I'm trying to provide rename refactoring for managed bean names. Managed bean names are typically defined via annotations, e.g.: import javax.faces.bean.ManagedBean; @ManagedBean(name = "foo") public class FooBean { ...} Now if you have the caret within "foo" in the above and invoke Refactor->Rename, an error saying "Cannot refactor library class javax.faces.bean" is displayed. The error comes from the org.netbeans.modules.refactoring.java.plugins.RenameRefactoringPlugin#preCheck() method. Due to this my refactoring implementation, which would handle renaming references to the bean name, doesn't get a chance to handle the refactoring at all. I suppose there may be a way to somehow workaround this already, but I don't know how to achieve that - any advice is appreciated. (Filing as a P2 as this is blocking a feature planned for M1.)
This is not bug. Refactoring of values is not supported, but you can write your own support and plug it in: implement your own ActionsImplementationProvider, but please carefully, you can significantly slow down the whole refactoring infrastructure, if the impl. is slow even for file you don't care.