Indexing external directory programatically

Answered

Hello, 

I want to add external directory and create indices for it to my project programatically from the plugin code so I could search for the files in the directory with FilenameIndex.getFilesByName function. Is that achievable?
Could I create shared index for that directory so when accessing mentioned directory in different projects created index would be  reused?

2 comments
Comment actions Permalink

Use EP List to find entry points https://plugins.jetbrains.com/docs/intellij/extension-point-list.html#indexingxml

com.intellij.indexedRootsProvider -> IndexableSetContributor

 

   
0
Comment actions Permalink

That's what I needed.Thanks for help

0

Please sign in to leave a comment.