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 209008 - Friend API to provide IndexReader to Convertors
Summary: Friend API to provide IndexReader to Convertors
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-29 15:29 UTC by Tomas Zezula
Modified: 2012-03-15 12:30 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Diff file (12.39 KB, application/octet-stream)
2012-02-29 15:29 UTC, Tomas Zezula
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Zezula 2012-02-29 15:29:10 UTC
Created attachment 116208 [details]
Diff file

Added IndexReaderInjection which allows IndexReader to be passed to the convertor.
When implemented by the Convertor or StoppableConvertor the index queries set an
IndexReader instance to the passed convertor before calling the convert method. At the end of the query the active IndexReader is replaced by null.
Comment 1 Dusan Balek 2012-03-01 15:45:52 UTC
The attached patch looks OK.
Comment 2 Tomas Zezula 2012-03-13 08:53:22 UTC
Fixed jet-main 6fd32f52b370
Comment 3 Quality Engineering 2012-03-15 12:30:33 UTC
Integrated into 'main-golden', will be available in build *201203150400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/6fd32f52b370
User: Tomas Zezula <tzezula@netbeans.org>
Log: #209008:Friend API to provide IndexReader to Convertors