use of org.eclipse.epp.internal.mpc.ui.catalog.MarketplaceDiscoveryStrategy in project epp.mpc by eclipse.
the class MarketplaceWizard method initializeCatalog.
void initializeCatalog() {
final MarketplaceCatalog catalog = getCatalog();
synchronized (catalog) {
List<AbstractDiscoveryStrategy> discoveryStrategies = catalog.getDiscoveryStrategies();
for (AbstractDiscoveryStrategy strategy : discoveryStrategies) {
strategy.dispose();
}
discoveryStrategies.clear();
if (getConfiguration().getCatalogDescriptor() != null) {
MarketplaceDiscoveryStrategy discoveryStrategy = new MarketplaceDiscoveryStrategy(getConfiguration().getCatalogDescriptor());
discoveryStrategy.setShellProvider(this);
discoveryStrategies.add(discoveryStrategy);
}
}
}
use of org.eclipse.epp.internal.mpc.ui.catalog.MarketplaceDiscoveryStrategy in project epp.mpc by eclipse.
the class MarketplaceWizard method findMarketplaceDiscoveryStrategy.
protected MarketplaceDiscoveryStrategy findMarketplaceDiscoveryStrategy() {
MarketplaceDiscoveryStrategy marketplaceStrategy = null;
List<AbstractDiscoveryStrategy> discoveryStrategies = getCatalog().getDiscoveryStrategies();
for (AbstractDiscoveryStrategy strategy : discoveryStrategies) {
if (strategy instanceof MarketplaceDiscoveryStrategy) {
marketplaceStrategy = (MarketplaceDiscoveryStrategy) strategy;
break;
}
}
return marketplaceStrategy;
}
Aggregations