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.

Bug 128755 - Impossible undo after DnD Managed Bean to another package
Summary: Impossible undo after DnD Managed Bean to another package
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-28 20:26 UTC by Roman Mostyka
Modified: 2012-11-15 07:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2008-02-28 20:26:35 UTC
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.
Comment 1 _ potingwu 2008-02-28 21:24:31 UTC
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.
Comment 2 Roman Mostyka 2008-02-29 10:02:45 UTC
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.
Comment 3 _ potingwu 2008-02-29 16:57:54 UTC
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.
Comment 4 Roman Mostyka 2008-03-03 08:59:44 UTC
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.
Comment 5 _ potingwu 2008-03-03 16:32:40 UTC
Thanks for the more detailed info! I will discuss with the general project team about this issue/improvement.
Comment 6 Erno Mononen 2010-10-13 11:20:39 UTC
Taking over Alexey's JSF and Spring issues.
Comment 7 Martin Fousek 2012-11-15 07:49:24 UTC
Works well to me in the latest builds:
NetBeans IDE Dev (Build 20121115-8eb39b76a657)