Registering ISourceProvider with Services (Eclipse Plugin Development, RCP)

I ran into a situation similar to the one described in these stackoverflow questions: How to communicate between views in Eclipse RCP? and Eclipse RCP: How to register an ISourceProviderListener

I've tried the following DJ. instructions from the first link, but I'm stuck at the point where I have to "create an ISourceProvider implementation and register it with the services". An implementation of ISourceProvider exists, but I'm not sure where or how to register the service.

This is what I have so far: In my MANIFEST.MF, under Extensions, I added org.eclipse.ui.services. According to the Eclipse documentation for services I need another class that implements the service (ISourceProviderService, I suppose) and some kind of ServiceFactory. Unfortunately, I didn't find a lot of helpful documentation for these two classes.

Or am I missing something and there is a way to communicate between views that is easier?

+3


source to share


1 answer


I'm not familiar with the classes involved, but have you looked at this tutorial ? It seems to contain some examples with a good explanation.



0


source







All Articles