use of org.eclipse.epp.mpc.core.service.IMarketplaceService in project epp.mpc by eclipse.
the class DiscoverFileSupportJob method run.
@Override
protected IStatus run(IProgressMonitor monitor) {
BundleContext bundleContext = MarketplaceClientUiPlugin.getBundleContext();
ServiceReference<IMarketplaceServiceLocator> locatorReference = bundleContext.getServiceReference(IMarketplaceServiceLocator.class);
IMarketplaceServiceLocator locator = bundleContext.getService(locatorReference);
IMarketplaceService marketplaceService = locator.getDefaultMarketplaceService();
try {
return run(marketplaceService, monitor);
} finally {
bundleContext.ungetService(locatorReference);
}
}
Aggregations