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 196981

Summary: API review: Add possibility to specify that indexers should prefer modified editor content
Product: editor Reporter: Tomas Zezula <tzezula>
Component: Parsing & IndexingAssignee: apireviews <apireviews>
Status: RESOLVED FIXED    
Severity: normal Keywords: API, API_REVIEW_FAST
Priority: P3    
Version: 7.0.1   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 196930    
Attachments: Diff file

Description Tomas Zezula 2011-03-22 17:25:28 UTC
Currently only IndexingManager.refreshIndex has a parameter to specify if modified editor content should be used. The same blocking method (refreshIndexAndWait) should be added.
Comment 1 Tomas Zezula 2011-03-22 17:27:12 UTC
Such a method is needed by QuerySupport.query which refreshes the modified indexers, see issue #196930. Currently it's solved by hack (the code is copied from IndexingManager into QuerySupport).
Comment 2 Tomas Zezula 2011-03-22 17:29:29 UTC
Created attachment 107195 [details]
Diff file
Comment 3 Dusan Balek 2011-03-28 07:35:12 UTC
Proposed change seems to be OK.
Comment 4 Tomas Zezula 2011-03-28 12:52:39 UTC
Fixed jet-main 2038c0eac11a
Comment 5 Quality Engineering 2011-03-29 08:43:39 UTC
Integrated into 'main-golden', will be available in build *201103290400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/2038c0eac11a
User: Tomas Zezula <tzezula@netbeans.org>
Log: #196981:API review: Add possibility to specify that indexers should prefer modified editor content