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.
Expand All Nodes action in the refactoring window (Usages of "foo") is blocking AWT thread and even though it can take many seconds there is no indication of it. This action must be changed to behave according to the rules for UI Responsiveness. The best approach would be to correct its behaviour according to the current number of nodes in the tree and assessment of the time needed. If the tree can be expanded within 100ms, no indication is needed, if it can be expanded within 1s, only hour-glass cursor can be used, if it takes more than 1s a progress bar should be provided.
Fixed. Wait cursor added. /cvs/refactoring/src/org/netbeans/modules/refactoring/ui/Attic/RefactoringPanel.java,v <-- RefactoringPanel.java new revision: 1.1.2.12.2.4; previous revision: 1.1.2.12.2.3 done
Setting Target Milestone to promoD
Sorry, have to reopen. The wait cursor is useful but the IDE is frozen until the expand action finishes (done fully in AWT) which can take many seconds. Would it be possible to prepare the expanded tree in a separate thread and only replace the old tree with the new one in AWT thread when the new tree is ready?
OK. I'll try it, but handling AWT components outside AWT thread is not a good practise.
Checking in RefactoringPanel.java; /cvs/refactoring/src/org/netbeans/modules/refactoring/ui/RefactoringPanel.java,v <-- RefactoringPanel.java new revision: 1.8; previous revision: 1.7 done
Verified. Thanks.