Get object from one Plugin in an other Plugin

Hey,

I already described my problem here: https://stackoverflow.com/questions/52555806/use-picocontainer-with-two-intellij-plugins

 

I build two own IntelliJ-Plugins. PluginTwo depends on PluginOne. Now I want to access an object, wich is created by PluginOne in PluginTwo.

If I try to get the object via a static method, then I cant use the PicoContainer any more.

If I try to get the object via ServiceManager, I got a fresh new instance of the object and not the originally created by PluginOne.

 

The Example linked at the bottom of this page is pretty much what I want. But it didn't work if you use it with two plugins.

 

I am thankful for every new idea to solve this issue.

0

Please sign in to leave a comment.