use of org.eclipse.epp.internal.mpc.ui.wizards.SelectionModel in project epp.mpc by eclipse.
the class SelectionModelStateSerializerTest method setUp.
@Before
public void setUp() throws Exception {
CatalogDescriptor catalogDescriptor = new CatalogDescriptor(new URL("http://marketplace.eclipse.org"), "Eclipse.org Marketplace");
discoveryStrategy = new MarketplaceDiscoveryStrategy(catalogDescriptor) {
@Override
public IMarketplaceService createMarketplaceService() {
DefaultMarketplaceService marketplaceService = new DefaultMarketplaceService(catalogDescriptor.getUrl());
Map<String, String> requestMetaParameters = ServiceLocator.computeDefaultRequestMetaParameters();
marketplaceService.setRequestMetaParameters(requestMetaParameters);
return marketplaceService;
}
};
catalog = new MarketplaceCatalog();
catalog.getDiscoveryStrategies().add(discoveryStrategy);
selectionModel = new SelectionModel(new InstallProfile() {
public Set<String> getInstalledFeatures() {
return Collections.emptySet();
}
});
}
Aggregations