IMarketplaceServiceLocator.getDefaultFavoritesService() returns null [message #1752170] |
Thu, 19 January 2017 12:41 |
Andreas Sewe Messages: 111 Registered: June 2013 |
Senior Member |
|
|
Hi,
I am trying to write an (E4-style) command handler that makes use of the various I*Services offered by the org.eclipse.epp.mpc.core bundle:
@Execute
public void execute(IMarketplaceServiceLocator locator) {
IMarketplaceService marketplaceService = locator.getDefaultMarketplaceService();
IUserFavoritesService favoritesService = locator.getDefaultFavoritesService();
}
When the above handler is executed, the IMarketplaceServiceLocator is injected just fine. Also, I am able to obtain an IMarketplaceService. The IUserFavoritesService, however, is null.
This changes only if, before executing the command, I manually open the marketplace client.
How to ensure that, when my handler is executed, that all necessary services are registered already?
Best wishes,
Andreas
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03186 seconds