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 201353 - API review of a friend JavaIndexerPlugin
Summary: API review of a friend JavaIndexerPlugin
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2011-08-26 09:25 UTC by Tomas Zezula
Modified: 2011-09-01 14:19 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
diff file (10.65 KB, patch)
2011-08-26 09:25 UTC, Tomas Zezula
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Zezula 2011-08-26 09:25:28 UTC
Created attachment 110234 [details]
diff file

Added a possibility to plug into Java source indexing. The indexer plugin is called on fully attributed compilation unit tree processed by JavaCustomIndexer. Because the parsing and attribution of Java source was already done by JavaCustomIndexer the plugin does not introduce any performance impact.
Use case: task list providers scanning attributed java sources like white list support.
The SPI has a friend API level.
Comment 1 Jan Lahoda 2011-08-26 13:30:34 UTC
Is the factory really to be registered in the mime lookup (I assume for "text/x-java"), or should it be registered in the global lookup? Otherwise seems fine to me.
Comment 2 Tomas Zezula 2011-08-26 13:41:46 UTC
Yes, it's registered in MimeLookup "text/x-java".
Comment 3 Tomas Zezula 2011-08-29 08:47:25 UTC
Fixed jet-main 8f8468d03940
Comment 4 Quality Engineering 2011-09-01 14:19:49 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/8f8468d03940
User: Tomas Zezula <tzezula@netbeans.org>
Log: #201353:API review of a friend JavaIndexerPlugin