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 46317 - Refactoring Undo should have progress bar
Summary: Refactoring Undo should have progress bar
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-07-20 10:46 UTC by Antonin Nebuzelsky
Modified: 2007-04-03 18:02 UTC (History)
2 users (show)

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 Antonin Nebuzelsky 2004-07-20 10:46:33 UTC
Currently there is no indication of progress of
refactoring Undo action, only hour-glass cursor,
which is not enough for an operation taking tens
of seconds.

Also caret is blinking in editor while the Undo
action is in progress and the user can modify open
files. Which would have unpredictable consequences
I guess... Is it also the same case for
refactoring actions like Rename?
Comment 1 Jan Becicka 2004-07-20 12:43:19 UTC
Undo action should not take tens of seconds. If it takes tens of
seconds, it is caused probably by rollbacks (issue 46325).
Comment 2 Antonin Nebuzelsky 2004-07-20 13:01:32 UTC
With mx96m and jEdit renamed to jEditor (which took 3:40) the undo
rename took 2:00. Without rollbacks, finished successfully.
Comment 3 Jan Becicka 2004-07-20 13:12:24 UTC
Yes, you are right.
Dusane, please specify how Undo/Redo progress bar should look like...
and reassign this issue back to me. Thanks
Comment 4 Antonin Nebuzelsky 2004-07-26 09:17:46 UTC
This issue should not be ignored... Upgrading to P1.
If there is no progress bar and the user is allowed to modify files in
the editor while the undo is in progress, it can lead to user file
corruption.
Comment 5 dpavlica 2004-07-26 10:08:34 UTC
In a case that refactoring Undo action (Redo action) takes so much
time, there should exist progress indication definitelly. 

I suggest to create modal dialog similar to Scanning dialog in spec
with title: Undo of NameOfRefactoringAction (eventually: Redo of
NameOfRefactoringAction)
with description: Big amount of changes in code are giving back (or
simple label with actual changes of conrete files)
and with Progress bar below with number of finished percentage.

But we need to merge editor Undo and Refactoring Undo actions in the
future and then this dialog will be different a bit. Then it should
contain info about difference against normal Editor Undo, asking the
question about its execution and buttons Yes/No at the bottom of dialog.
Comment 6 Jan Becicka 2004-07-26 15:32:35 UTC
Fixed.

Checking in Bundle.properties;
/cvs/java/javacore/src/org/netbeans/modules/javacore/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.7; previous revision: 1.6
done
RCS file:
/cvs/java/javacore/src/org/netbeans/modules/javacore/UndoProgressPanel.form,v
done
Checking in UndoProgressPanel.form;
/cvs/java/javacore/src/org/netbeans/modules/javacore/UndoProgressPanel.form,v
 <--  UndoProgressPanel.form
initial revision: 1.1
done
RCS file:
/cvs/java/javacore/src/org/netbeans/modules/javacore/UndoProgressPanel.java,v
done
Checking in UndoProgressPanel.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/UndoProgressPanel.java,v
 <--  UndoProgressPanel.java
initial revision: 1.1
done
Processing log script arguments...
More commits to come...
Checking in internalapi/JavaMetamodel.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/internalapi/JavaMetamodel.java,v
 <--  JavaMetamodel.java
new revision: 1.5; previous revision: 1.4
done
Checking in internalapi/UndoManager.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/internalapi/UndoManager.java,v
 <--  UndoManager.java
new revision: 1.6; previous revision: 1.5
done
Comment 7 Antonin Nebuzelsky 2004-07-30 17:08:59 UTC
Verified. The modal dialog box with the progress bar looks good.

Just, is the wording of the message correct?
"Big amount of changes in code are giving back"
Sounds strange to me. :)
Tim, is this OK?
Comment 8 _ tboudreau 2004-07-31 00:25:37 UTC
"Big amount of changes in code are giving back" :-)  It's cute.  But probably should be 
reworded.

"Reverting last refactoring..." would work.
Comment 9 Jan Becicka 2004-08-12 15:05:50 UTC
Funny label updated.

Checking in Bundle.properties;
/cvs/java/javacore/src/org/netbeans/modules/javacore/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.9; previous revision: 1.8
done