IntelliJ Idea:如何在运行时获取插件路径

时间:2022-08-27 23:28:06

I need to get the path of a plugin inside of the actionPerformed method of one of its AnAction when it is invoked

当调用它时,我需要在其AnAction之一的actionPerformed方法中获取插件的路径

1 个解决方案

#1


com.intellij.openapi.application.PathManager#getPluginsPath

or

com.intellij.openapi.application.PluginPathManager#getPluginHome

#1


com.intellij.openapi.application.PathManager#getPluginsPath

or

com.intellij.openapi.application.PluginPathManager#getPluginHome