how to make a plugin available to another plugin for extension

hello,
how to make a plugin available to another plugin for extension ?
I have defined an extension point and the interface to be implemented by extending plugin but now I need to add this interface to the classpath of the 'extender' - to successfully compile the implementation class.
The question is - how to to this ?
Do I need to manually add the extended plugin's jar file to the classpath of the 'extender' (it works - I've tested it..) or should it be sufficient to add the base plugin to IDEA's plugin list and enable it ?
Thanks in advance for any feedback

5 comments
manually add the extended plugin's jar file to the classpath of the 'extender' (it works - I've tested it..)

That's correct.

0

For developing, you'll need to add the JAR(s) manually to the extending plugin's classpath.

For deploying, <depends> will take care of requesting user to install/enable any required plugin(s).

0

got it, thank you for a quick response
regards,
Simon

0

Would it be possible to selectively enable dependencies, depending on platform version? I.e. If I'm running under IDEA 12, I'd like to add dependency1.jar to classpath, and if it is IDEA 13, then add dependency2.jar to classpath?

Something like this:

<depends since="112.111" until="113.000">dependency1</depends>
<depends since="113.001">dependency2</depends>

or maybe something similar could be done via the plugin extension points?

0

No, you should have different branches of the plugin for different branches of IntelliJ IDEA.

0

Please sign in to leave a comment.