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.
1. Create web application with "JavaServer Faces" framework. 2. Add Managed Bean. 3. Drag it and drop to another package. Result: Refactoring dialog "Move Class" appears, but if click "Refactor" button, it is impossible to undo.
Is it a bug? Inside NetBeans IDE, when you refactoring (move Java class to other Package) in any kind of projects, undo is not supported. I think it's the general behavior under the whole IDE. You can just drag-n-drop back to the original package to do the undo. I guess NetBeans IDE prevents the undo is for safety reason. The Undo sometimes have not just one single step, i.e., some actions may need multiple undo to complete undo.
Po-Ting, this action invokes refactoring dialog and in this case after do refactoring customer should be able to do undo. And this is main point. If it was just moving (without refactoring functionality) then everything is fine for me.
My point is, this is a general NetBeans IDE behavior. You can see the same for every type of project. Please try for example a simple J2SE application project, no undo after refactoring. If you really think NetBeans should provide this function, you should file against the general 'project' category. I mean refactoring back to the original state is pretty straightforward.
Actually after refactoring you can do undo, just rightclick and choose "Refactoring > Undo". But you can't do it after simple DnD operation, though this operation invokes standard refactoring dialog. It can mislead customers and they start to think that refactoring doesn't work. But if this is a general NetBeans IDE behavior, so can you discuss this with somebody who are responsible for general 'project' category and if you both think that this issue is wrong, then please close it.
Thanks for the more detailed info! I will discuss with the general project team about this issue/improvement.
Taking over Alexey's JSF and Spring issues.
Works well to me in the latest builds: NetBeans IDE Dev (Build 20121115-8eb39b76a657)