Simon Eismann
Simon Eismann

Reputation: 293

Plugin for Eclipseplugin, how to manage dependency?

I have the following setup: i have a eclipseplugin A. Then there are two plugins B & C that extend the features of A, so B and C are plugins for A.

Currently if somebody only installs B, the menu entires etc. that A creates are not avalible. Therefore the user can not access the features of B.

My Question now is, is there any way to either:

I hope my explanations make any kind of sense

Upvotes: 0

Views: 28

Answers (1)

Jonah Graham
Jonah Graham

Reputation: 7970

(What is unclear is how you are installing the plug-ins as you have to go through extra effort to install B without A if B is dependent on A)

Or automatically install A if the user tries to install B?

This is your best bet. This is the way the Eclipse works by default. Make feature.xmls for the A, B and C plugins (or what will become groups of interrelated plugins). Place them on a P2 site and let users install whichever feature they want. If they select B, A will automatically be installed because of the dependencies described in the feature xmls.

Upvotes: 1

Related Questions