ChooseByNameContributor.getItemsByName (.. includeNonProjectItems)

Is there a recommended way to pull PSIElements from dependent projects?

Thank you very much!

4 comments
Comment actions Permalink

Could you please clarify what exactly you would like to accomplish? ChooseByNameContributor is not intended to be used by anything other than the Goto Class dialog.

0
Comment actions Permalink

Hi Dmitry,

well I am looking to include items from dep projects in goto shortlist.

let's say, current project uses symbols defined in other projects. Goto would open up a file in that other project where the symbol is defined.

Thank you..

0
Comment actions Permalink

If by "project" you actually mean "project" (something which is open in an IntelliJ IDEA frame) and not a Maven project or an Eclipse project, then IntelliJ IDEA is not going to help you. All of the indexes and PSI structures work in the context of a single project. You can probably try to write a contributor that will somehow find the elements in other projects and show them in the active project, but that's not the way the IntelliJ IDEA API or UI is designed to be used.

The intended usage is to add all of the dependent code as modules to a single project.

0
Comment actions Permalink

> The intended usage is to add all of the dependent code as modules to a single project.

This would be the ideal solution, yes.


This plugin is for a language for which module type & SDK do not appear in project settings dialog.

How can I add module type & SDK?

ok found this topic:

https://devnet.jetbrains.com/message/5481090#5481090

will study it then post questions there.

Thank you Dmitry!

0

Please sign in to leave a comment.