Skip to content

Commit

Permalink
Fixed Discovery ui.
Browse files Browse the repository at this point in the history
DS models added another category to the p2 site, it is now hardcoded fro two categories default and ds.models.
  • Loading branch information
goglepox committed May 23, 2012
1 parent 7e89064 commit 31476ef
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -33,6 +33,8 @@
import org.eclipse.equinox.p2.repository.metadata.IMetadataRepository;
import org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager;
import org.eclipse.equinox.p2.ui.ProvisioningUI;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public abstract class BasicRepositoryDiscoveryStrategy extends
Expand Down Expand Up @@ -114,7 +116,14 @@ public void performDiscovery(IProgressMonitor progressMonitor) throws CoreExcept

@SuppressWarnings("restriction")
private void connectCategories() {
if(categories.size() == 1) {

Logger logger = LoggerFactory
.getLogger( BasicRepositoryDiscoveryStrategy.class );
logger.debug( categories.size() + " categories found: " );
for(CatalogCategory c:categories) {
logger.debug( c.getId() );
}
if ( categories.size() == 2 ) {
CatalogCategory catalog =
categoryById.get( "net.bioclipse.install.catalog.default" );
for( CatalogItem id: catalogItemById.values()) {
Expand Down

0 comments on commit 31476ef

Please sign in to comment.