Conditional plugin initialization

Answered

I would like to create a component that checks for certain preconditions -- some dependencies being present in the environment and avoid loading the rest of the plugin if they are not present, I would also like to do that without permenantly disabling the plugin so that if the dependencies are installed the plugin would be enabled on IDE restart. Is this possible to accomplish?

0
1 comment

No, IntelliJ platform doesn't support partial disabling of plugins. It's possible to create two plugins, one will perform checks and enable/disable the other, but it would require IDE restart so it would be inconvenient.

But what do you mean by 'loading the rest of the plugin'? IDE doesn't load classes of your plugin until they are used.

0

Please sign in to leave a comment.