There are a couple of ways to do that.  If you don't specify it in your
base model, you can have a fragment add your addon to the model.

But for providing services that are accessible from the context, you have 2
other options:

1) simply have the implementation register an OSGi service.  By default you
can pick those up through the IEclipseContext.  you'll get a different
implementation depending on which bundles is available.

2) use DS to add a service as an IContextFunction, similar to
http://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/bundles/org.eclipse.e4.ui.workbench.swt/OSGI-INF/statusreporter.xml
That service can provide a ContextFunction that instantiates your services
as needed.

PW

-- 
Paul Webster
Hi floor.  Make me a sammich! - GIR
_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev

Reply via email to