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 47734 - Extensive calls to MDR after calling where-used
Summary: Extensive calls to MDR after calling where-used
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-08-23 19:50 UTC by psuk
Modified: 2007-09-26 09:14 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 psuk 2004-08-23 19:50:30 UTC
[dev from cvs 040823]
There is a big number of calls to MDR after
where-used window is shown, caused by several
listeners.

1. Patch the IDE to see calls to MDR (Issue 47456)
2. Open project Editor from nb.org
3. Open file FoldingToolTip
4. Go to Line 114 and set caret on AbstractDocument
5. Invoke Find Usages
6. Press Finish
You will see the number of calls even after the
window "Usages" is visible. It looks like they're
coming from 
org.netbeans.modules.java.Parsing$1.resourceParsed
Comment 1 Miloslav Metelka 2004-08-24 17:34:01 UTC
Editor Part:
Implemented improvement in NbJavaFoldManager to first compare whether
primaryFO.getPath() ends with resource.getName(). In case of match
JavaMetaModel.getFileObject(resource) is compared to primaryFO.

Fixed in trunk:
src/org/netbeans/modules/editor/java/NbJavaFoldManager.java;
/cvs/editor/src/org/netbeans/modules/editor/java/NbJavaFoldManager.java,v
 <--  NbJavaFoldManager.java
new revision: 1.13; previous revision: 1.12
Comment 2 Jan Becicka 2004-08-27 14:56:07 UTC
JavaNode.resolveIcons optimized:
Checking in JavaNode.java;
/cvs/java/src/org/netbeans/modules/java/JavaNode.java,v  <-- 
JavaNode.java
new revision: 1.115; previous revision: 1.114
done