# HG changeset patch # User dadubrow # Date 1275590204 18000 # Node ID fa9156253e986fa72f61ff57a2d7636c86cbfaf4 # Parent 6a454f350c2abf331e13db7cf20c974f6a5e8e9d back out spurious changes diff -r 6a454f350c2a -r fa9156253e98 core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/discovery/ui/view/DiscoveryView.java --- a/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/discovery/ui/view/DiscoveryView.java Thu Jun 03 13:33:24 2010 -0500 +++ b/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/discovery/ui/view/DiscoveryView.java Thu Jun 03 13:36:44 2010 -0500 @@ -9,11 +9,8 @@ import java.net.URISyntaxException; import java.net.URL; import java.text.MessageFormat; -import java.util.ArrayList; import java.util.Collection; -import java.util.Collections; import java.util.HashSet; -import java.util.Iterator; import java.util.List; import java.util.Properties; import java.util.Set; @@ -30,12 +27,7 @@ import org.eclipse.equinox.internal.p2.ui.discovery.wizards.CatalogConfiguration; import org.eclipse.equinox.internal.p2.ui.discovery.wizards.CatalogViewer; import org.eclipse.equinox.p2.core.IProvisioningAgent; -import org.eclipse.equinox.p2.engine.IProfile; -import org.eclipse.equinox.p2.engine.IProfileRegistry; -import org.eclipse.equinox.p2.metadata.IInstallableUnit; import org.eclipse.equinox.p2.operations.ProvisioningSession; -import org.eclipse.equinox.p2.query.IQueryResult; -import org.eclipse.equinox.p2.query.QueryUtil; import org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryManager; import org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager; import org.eclipse.equinox.p2.ui.ProvisioningUI; @@ -265,20 +257,6 @@ artifactManager.addRepository(uri); } defaultUI.openInstallWizard(null, null, null); - - String profileId = defaultUI.getProfileId(); - IProfileRegistry profileRegistry = (IProfileRegistry) agent.getService(IProfileRegistry.SERVICE_NAME); - IProfile profile = profileRegistry.getProfile(profileId); - IQueryResult queryResult = profile.query(QueryUtil.createIUGroupQuery(), null); - List list = new ArrayList(); - for (Iterator iter = queryResult.iterator(); iter.hasNext();) { - IInstallableUnit iu = iter.next(); - list.add(iu.getId() + "|" + iu.getVersion()); - } - Collections.sort(list); - for (String s : list) { - System.out.println(s); - } } private Collection getCatalogURIs() {