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 177262 - [69cat] LookupSensitiveAction refresh on EQ
Summary: [69cat] LookupSensitiveAction refresh on EQ
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: PERFORMANCE
: 185704 185936 190198 (view as bug list)
Depends on:
Blocks: 178848 194908
  Show dependency tree
 
Reported: 2009-11-20 01:41 UTC by Exceptions Reporter
Modified: 2011-12-08 12:11 UTC (History)
18 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 158595


Attachments
nps snapshot (256.00 KB, application/nps)
2009-11-20 01:41 UTC, Exceptions Reporter
Details
Start of patch (12.20 KB, patch)
2010-05-14 22:06 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2009-11-20 01:41:49 UTC
Build: NetBeans IDE 6.8 Beta (Build 200910221137)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Windows XP, 5.1, x86
Maximum slowness yet reported was 11844 ms, average is 6225
Comment 1 Exceptions Reporter 2009-11-20 01:41:54 UTC
Created attachment 91395 [details]
nps snapshot
Comment 2 Antonin Nebuzelsky 2010-03-29 14:11:26 UTC
Change of default owner.
Comment 3 Jesse Glick 2010-04-13 19:41:07 UTC
Only seems to affect Windows users, I guess due to the slow filesystem; single calls to File.getCanonicalPath are recorded here taking several seconds. Really many unrelated snapshots:

1. DepFinderAction is slow, should check enablement off EQ. Similarly RunCheckstyleAction. Could be filed separatedly for SQE.

2. MainProjectAction.refreshView can be slow; see bug #178848.

3. LookupSensitiveAction.doRefresh should probably run off EQ in general.

4. FormDesigner.<init> and .componentShowing can be slow; probably filed separately somewhere.

Leaving open for #2, more or less arbitrarily.
Comment 4 Jesse Glick 2010-05-07 15:14:26 UTC
*** Bug 185704 has been marked as a duplicate of this bug. ***
Comment 5 Jesse Glick 2010-05-11 17:29:27 UTC
*** Bug 185936 has been marked as a duplicate of this bug. ***
Comment 6 Jesse Glick 2010-05-14 22:06:22 UTC
Created attachment 99029 [details]
Start of patch

Cannot get existing tests to pass; may need to refactor code so that refresh is declarative, returning e.g. Map<String,Object> action properties.

Also displays problems with Test Project and Generate Javadoc: after change in selection, menu item when first posted shows old selection. Reposting menu corrects this.
Comment 7 Jesse Glick 2010-05-14 22:07:29 UTC
Too dangerous for 6.9.
Comment 8 Jesse Glick 2010-09-20 21:46:10 UTC
*** Bug 190198 has been marked as a duplicate of this bug. ***
Comment 9 Jesse Glick 2011-12-06 22:29:48 UTC
(In reply to comment #6)
> Created attachment 99029 [details]
> Start of patch

Refreshed to accommodate fix of bug #187621. So, core-main #b29f93db1d0c

> Cannot get existing tests to pass

They pass now (perhaps because of the above).

> after change in selection, menu item when first posted shows old selection

No longer reproducible.
Comment 10 Quality Engineering 2011-12-08 12:11:06 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/b29f93db1d0c
User: Jesse Glick <jglick@netbeans.org>
Log: Issue #177262: refresh enablement of project-related actions off EQ.