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 54957 - Populating Methods combo in Specify Code Fragment and Select Methods breaks responsiveness
Summary: Populating Methods combo in Specify Code Fragment and Select Methods breaks r...
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: iformanek
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2005-02-14 17:33 UTC by Antonin Nebuzelsky
Modified: 2007-02-12 22:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Event Queue stack trace (12.98 KB, text/plain)
2005-02-14 17:36 UTC, Antonin Nebuzelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonin Nebuzelsky 2005-02-14 17:33:25 UTC
When you select a class in the Specify Code
Fragment dialog, the combo box with methods is
being populated. This is done in AWT thread and
takes a reasonable time because it involves a lot
calls to javacore/MDR. See the attached stack trace.

To obey UI responsiveness rules, the combo box
should be first changed to something like "please
wait...", then the computation should take place
in a worker thread, and then the combo box should
be populated.
Comment 1 Antonin Nebuzelsky 2005-02-14 17:36:35 UTC
Created attachment 20337 [details]
Event Queue stack trace
Comment 2 Antonin Nebuzelsky 2005-02-14 17:39:08 UTC
BTW, the same happens when you select Part of Method Code and then
back Whole Method. The contents of the combo box is being populated in
this case as well.
Comment 3 iformanek 2005-02-16 09:53:04 UTC
Self assign for M6
Comment 4 Antonin Nebuzelsky 2005-02-16 15:37:18 UTC
Another occurence of this issue is when you select a class name in
Select Methods dialog (invoked from Specify Root Methods dialog).
Comment 5 iformanek 2005-04-07 14:43:35 UTC
Fixed in M6.
The code that obtains metadata runs in profiler RP, the UI displays "Getting 
list of methods..." in a disabled control (combo/list) until the UI is updated 
with the obtained data.
Comment 6 ehucka 2006-10-09 12:09:30 UTC
Verification of old issues.
Comment 7 Alexander Kouznetsov 2007-02-12 22:09:30 UTC
Closing old issues.