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 174413 - 10s - CsmUtilities call getOpenedPanes()
Summary: 10s - CsmUtilities call getOpenedPanes()
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vladimir Voskresensky
URL: http://statistics.netbeans.org/except...
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2009-10-13 08:07 UTC by Jaroslav Tulach
Modified: 2009-10-15 10:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 160051


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2009-10-13 08:07:38 UTC
EditorCookie.getOpenedPanes() is known to be inherently slow (especially after start) and it is a candidate for being 
deprecated. There is new, more effective replacement in NbDocument:

http://bits.netbeans.org/dev/javadoc/org-openide-text/apichanges.html#NbDocument.findRecentEditorPane

Please use that or prevent calls to getOpenedPanes() is some other way.
Comment 1 Vladimir Voskresensky 2009-10-14 11:18:09 UTC
fixed
http://hg.netbeans.org/cnd-main?cmd=changeset;node=8f8544386932
Comment 2 Jaroslav Tulach 2009-10-14 11:54:39 UTC
Good. The code also looks slightly simplified.
Comment 3 Quality Engineering 2009-10-15 10:19:12 UTC
Integrated into 'main-golden', will be available in build *200910150201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/8f8544386932
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed IZ#174413: 10s - CsmUtilities call getOpenedPanes()