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 229049 - 3s: Ctrl-Clicked on a symbol in java editor and 72 menu items were created
Summary: 3s: Ctrl-Clicked on a symbol in java editor and 72 menu items were created
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.3
Hardware: PC Linux
: P2 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
: 228481 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-26 06:43 UTC by Jaroslav Tulach
Modified: 2013-09-19 22:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Snapshot of the moment (100.24 KB, application/octet-stream)
2013-04-26 06:43 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2013-04-26 06:43:05 UTC
Created attachment 133832 [details]
Snapshot of the moment

Needless to mention that after Ctrl-click, no menu has been shown. Still at least 72 menu items were created. See the count of calls in the attached snapshot...

Following method would be my primary suspect:
org.netbeans.editor.JumpList.checkAddEntry()	2,741 ms (37.9%)
Comment 1 Milutin Kristofic 2013-04-26 10:40:25 UTC
It removes all items in editor toolbar and it adds it back after every ctrl+click. Nice catch. I fix it ASAP.
Comment 2 Milutin Kristofic 2013-04-28 13:06:36 UTC
Ok, Jpopupmenu is updated only when it is going to be shown. I will consider have a limit on number of items. 

http://hg.netbeans.org/jet-main/rev/06088285d53a
Comment 3 Quality Engineering 2013-05-02 14:10:39 UTC
Integrated into 'main-golden', will be available in build *201305021042* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/06088285d53a
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #229049 - 3s: Ctrl-Clicked on a symbol in java editor and 72 menu items were created
Comment 4 Martin Entlicher 2013-08-30 18:52:11 UTC
*** Bug 228481 has been marked as a duplicate of this bug. ***
Comment 5 pwasson 2013-09-19 22:14:27 UTC
One culprit may have been fixed, but not all of them. I started using 7.4RC1 today, and stepping is still slow, at least when the Variables pane is being displayed. Many of the Type and Value cells in that pane change to "Evaluating..." and take a while to be replaced with their correct values. For example, I just tried it and it took 8 seconds for all 11 visible rows to finish. It does appear to be faster than 7.3, in that you can step without waiting for all the evaluation to finish, but it's still clunky.