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 39984

Summary: JUnit can use lazy menu to display its popup or menu faster
Product: java Reporter: _ rkubacki <rkubacki>
Component: JUnitAssignee: junit-issues@java <junit-issues>
Status: VERIFIED FIXED    
Severity: blocker Keywords: PERFORMANCE
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 40260    

Description _ rkubacki 2004-02-11 17:50:37 UTC
Currently it creates also presenters for submenu
items. It can use similar pattern os other menus
(I18N, javadoc indices). This can save some time
when building the menu.

OTOH create/run/open actions are already resolved
because we have shortcuts initialized and the
action (loaded from manifests stores them in
static variable inited in static initializer).
Comment 1 _ rkubacki 2004-02-19 10:36:39 UTC
Checking in junit/src/org/netbeans/modules/junit/TestsAction.java;
/cvs/junit/src/org/netbeans/modules/junit/TestsAction.java,v  <-- 
TestsAction.java
new revision: 1.6; previous revision: 1.5

Seems to be worth of this optimization - menu presenter creating is
expensive when it is done for all subitems (icons?).

it might be good to do the same for popup presenter.
Comment 2 dmladek 2004-09-16 15:48:53 UTC
I guess that self-reporter&bugfixer in one person is satisfaid with
his work, so I'm closing this issue as well fixed:-)