Community
Participate
Working Groups
I tried using getViewSite().getServices(MyService) for a View in the compatibility layer and hoped to get my own defined service. I checked in the console and saw that my service was registered. Is this supposed to work?
(In reply to comment #0) > I tried using getViewSite().getServices(MyService) for a View in the > compatibility layer and hoped to get my own defined service. How did you define this service? Is this an OSGi service or are you using a service factory of Eclipse?
@Remy: I registered it as OSGi service. My assumption was that this would be one of the enhancements of e4 for "old" RCP applications.
(In reply to comment #2) > @Remy: I registered it as OSGi service. If it's an OSGi service then this should certainly work, I'll take a look. Thanks for the info, Lars.
(In reply to comment #2) > @Remy: I registered it as OSGi service. Lars, was it a service registered through code or a DS?
I declared a DS and my view's getSite().getService(*) method was able to return the object.
Thanks Remy. I will re-test and post the results.
Retested. Works. For for the long delay in testing.