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

已回答

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

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

请先登录再写评论。