| Summary: | Compatibility Layer - Getting services via getViewSite().getServices() | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Lars Vogel <Lars.Vogel> |
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> |
| Status: | CLOSED INVALID | QA Contact: | Remy Suen <remy.suen> |
| Severity: | normal | ||
| Priority: | P3 | CC: | Lars.Vogel, pwebster, remy.suen, tom.schindl |
| Version: | 4.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Lars Vogel
(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. |