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 222987 - Inappropriate usage of getOpenedPanes()
Summary: Inappropriate usage of getOpenedPanes()
Status: RESOLVED INVALID
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-29 14:53 UTC by Jaroslav Tulach
Modified: 2012-11-29 14:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2012-11-29 14:53:22 UTC
Report: 
http://statistics.netbeans.org/exceptions/exception.do?id=633876
shows that 
org.netbeans.modules.css.visual.CssCaretAwareSourceTask.runInEDT()	100.0	2,743 ms (100%)	437 ms
blocks on calling 
org.openide.text.CloneableEditorSupport.getOpenedPanes()	100.0	2,743 ms (100%)	437 ms

Don't call that method. Try NbDocument.findRecentEditorPane
Comment 1 Jaroslav Tulach 2012-11-29 14:55:44 UTC
Already fixed as

changeset:   240898:21e2a273a524
summary:     #186117 - do not call EditorCookie.getOpenedPanes(), it is slow