Eclipse Buddys – Flexible

Assume the situation there you have a plug-in Master which will use classes which can come from plug-in A or plug-in B then. At runtime you have either A or B but only both.

So in this case you cannot register A and B as dependent plug-ins in Master.

Eclipse has a solution for this. In the plug-in Master you can add the possibility that other plug-ins can register themself via the following in the

Eclipse-BuddyPolicy: registered

This way Master can access the class of registered plug-ins.

In A and B add the following:

This means: Master can access the classes of A (and B). A and B must also add Master to their dependency.

About Lars Vogel

Lars Vogel is the founder and CEO of the vogella GmbH and works as Eclipse and Android consultant, trainer and book author. He is a regular speaker at international conferences, He is the primary author of With more than one million visitors per month this website is one of the central sources for Java, Eclipse and Android programming information.
This entry was posted in Uncategorized. Bookmark the permalink.