Navigate to method
Answered
Hi!
In my plugin I have a list of method's full names (in format 'com.company.Foo.bar(String[], int)') and this list is displayed as a JBList in tool window (see pic. 1)
And I want to navigate to method's declaration by clicking on this list element, like this is happens in a full search window (see pic2)
So, this is definitely possible, but how to implement this?
Thanks!
Please sign in to leave a comment.
There's a number of PSI indexes you can use to lookup class/method names.
http://www.jetbrains.org/intellij/sdk/docs/basics/psi_cookbook.html#how-do-i-find-a-class-by-qualified-name