Suppose I am building a very simple eclipse plugin for creating new java projects.
I obviously will create a new Wizard for the extension point org.eclipse.ui.newWizards. However, what I really want is to allow other plugins to implement a service that drives this new wizard.
So in theory we have three plugins:
- My "Primary Plugin" (with MyNewWizard)
- My "interface plugin" (with IMyService)
- My implementation plugin (with MyServiceImpl)
Using standard OSGI stuff, I would just use the services from a ServiceTracker.
Unfortunately, Im in Eclipse OSGI land, where I don't get to create my wizard class, passing in my ServiceTracker, but rather Eclipse makes my plugin.
WITHOUT using a singleton in my Activator, does Eclipse provide some mechanism for IoC/Dependency Injection or at the very least a way to query for services from these UI classes?
Thanks