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 182884 - Allow language specific GoTo File providers
Summary: Allow language specific GoTo File providers
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 6.x
Hardware: PC Mac OS X
: P1 normal (vote)
Assignee: Tomas Zezula
: 182880 (view as bug list)
Depends on: 183344
  Show dependency tree
Reported: 2010-03-26 12:16 UTC by Tomas Zezula
Modified: 2010-04-07 08:25 UTC (History)
3 users (show)

See Also:
Issue Type: TASK
Exception Reporter:

GoTo File SPI (12.64 KB, patch)
2010-03-31 19:27 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 2010-03-26 12:16:18 UTC
Allow languages to plug a SPI to provide their own file index. Source groups covered by such a provider will not be handled by default file index (indexer + fs search of non indexed dirs).
Comment 1 Michel Graciano 2010-03-26 12:25:24 UTC
Aren't this related to 182880?
Comment 2 Vladimir Voskresensky 2010-03-26 12:31:10 UTC
*** Bug 182880 has been marked as a duplicate of this bug. ***
Comment 3 Tomas Zezula 2010-03-31 19:27:54 UTC
Created attachment 96472 [details]
GoTo File SPI
Comment 4 Tomas Zezula 2010-03-31 19:33:54 UTC
Vladimir can you look to the attached new SPI? If it's OK for you I will add the apichanges and create an apireview request tomorrow and possibly integrate it on the Friday.
The cnd will need to implement FileProvider which computeFiles(...,...) method should return true for roots handled by cnd and false otherwise. You will also need to remove ClassPath registration from the MakeProject.
The Implementation of FileProvider is similar to TypeProvider. You need to implement FileProviderFactory which creates a new TypeProvider for each GoTo File session. The TypeProvider has two methods cancel and computeFiles which are nearly the same as in TypeProvider or SymbolProvider. The only difference is that the computeFiles returns a bool as a result as the FileProvider shoud not do merges.
Comment 5 Tomas Zezula 2010-04-07 08:25:37 UTC
Fixed in jet-main: 9a59d1812167