Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsEclipse Services as OSGi services
https://www.eclipse.org/forums/index.php/mv/msg/1065680/1692189/#msg_1692189
With the OSGi console, I checked which services can be retrieve from the activator with it IEclipseContext, but it seems that they are not all there.
In my use case, I need to instantiate a part programmatically from a PartDescriptor but I cannot retrieve the EPartService and the EModelService with inejction. So i think about do it with the IEclipseContext from the activator which can provide OSGI declared services.
The EPartService is already declared as an OSGi service, What about the EModelService ?
Thanks]]>Loic Faure2015-04-14T08:41:45-00:00Re: Eclipse Services as OSGi services
https://www.eclipse.org/forums/index.php/mv/msg/1065680/1692190/#msg_1692190
Quote:
I need to instantiate a part programmatically from a PartDescriptor
Where are you trying to do that?]]>Dirk Fauth2015-04-14T08:45:57-00:00Re: Eclipse Services as OSGi services
https://www.eclipse.org/forums/index.php/mv/msg/1065680/1692191/#msg_1692191
Loic Faure2015-04-14T08:50:38-00:00Re: Eclipse Services as OSGi services
https://www.eclipse.org/forums/index.php/mv/msg/1065680/1692197/#msg_1692197
Dirk Fauth2015-04-14T09:21:57-00:00Re: Eclipse Services as OSGi services
https://www.eclipse.org/forums/index.php/mv/msg/1065680/1692575/#msg_1692575
Your utility class needs to be provided the window from which you can retrieve the necessary contexts and services.
Brian.]]>2015-04-16T15:06:22-00:00Re: Eclipse Services as OSGi services
https://www.eclipse.org/forums/index.php/mv/msg/1065680/1692691/#msg_1692691
It's from a SWT DnD handler but between the call of the class and the handler, there is lots of method calls, so I can't pass the services I need to this classes.
@Brian
Ok, I think I need to re-design the classes of this plugin