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.
Currently only IndexingManager.refreshIndex has a parameter to specify if modified editor content should be used. The same blocking method (refreshIndexAndWait) should be added.
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).
Created attachment 107195 [details] Diff file
Proposed change seems to be OK.
Fixed jet-main 2038c0eac11a
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