How to get the selected folder or file path in project view from a tool window plugin?

Answered

I am developing a tool window plugin. From the plugin, I want to get the folder or file path that user selected in project view. But I can't find the the way to do that in docs.

1
2 comments

Pzzll, you can access the currently selected element of the active ProjectView with:

ProjectView.getInstance(project).currentProjectViewPane.selectedElement

Check also the other getters available in the ProjectViewPane.

0

Please sign in to leave a comment.