我想用intellij写一个插件。我可以为intellij创建一个插件,只要用户打开intellij IDE就在后台运行吗?
发布于 2015-03-16 00:00:39
您可以实现ProjectComponent接口(在项目加载时运行)。此类需要在plugin.xml中注册为project-components。还有像ApplicationComponent这样的其他组件。
ProjectComponent
project-components
ApplicationComponent
有关更多信息,请参阅:https://confluence.jetbrains.com/display/IDEADEV/IntelliJ+IDEA+Plugin+Structure#IntelliJIDEAPluginStructure-PluginComponents
https://stackoverflow.com/questions/29058777
相似问题