diff options
author | Thomas Hallgren | 2010-02-05 22:07:01 +0000 |
---|---|---|
committer | Thomas Hallgren | 2010-02-05 22:07:01 +0000 |
commit | 9faaed06625f31f3e4f26f65c3cffe4e947604fd (patch) | |
tree | 162a1267d4429ff85e188de84970455c138abfa6 /bundles/org.eclipse.equinox.p2.tests.ui/src | |
parent | e640f35a91169ce4ad67d674ba7b150b42450478 (diff) | |
download | rt.equinox.p2-9faaed06625f31f3e4f26f65c3cffe4e947604fd.tar.gz rt.equinox.p2-9faaed06625f31f3e4f26f65c3cffe4e947604fd.tar.xz rt.equinox.p2-9faaed06625f31f3e4f26f65c3cffe4e947604fd.zip |
299987 : Removal of p2 services in favor of always using an agent.
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests.ui/src')
2 files changed, 8 insertions, 25 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/AbstractProvisioningUITest.java b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/AbstractProvisioningUITest.java index 1c763fe31..227c0952c 100644 --- a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/AbstractProvisioningUITest.java +++ b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/AbstractProvisioningUITest.java @@ -10,22 +10,16 @@ *******************************************************************************/ package org.eclipse.equinox.p2.tests.ui; -import org.eclipse.equinox.p2.metadata.Version; -import org.eclipse.equinox.p2.metadata.VersionRange; - -import org.eclipse.equinox.p2.metadata.IUpdateDescriptor; - import java.io.File; import java.net.URI; import org.eclipse.core.runtime.*; -import org.eclipse.equinox.internal.p2.core.helpers.ServiceHelper; import org.eclipse.equinox.internal.p2.ui.model.ProfileElement; import org.eclipse.equinox.internal.provisional.p2.director.ProfileChangeRequest; -import org.eclipse.equinox.internal.provisional.p2.metadata.*; +import org.eclipse.equinox.internal.provisional.p2.metadata.MetadataFactory; import org.eclipse.equinox.internal.provisional.p2.metadata.MetadataFactory.InstallableUnitDescription; import org.eclipse.equinox.p2.core.ProvisionException; import org.eclipse.equinox.p2.engine.*; -import org.eclipse.equinox.p2.metadata.IInstallableUnit; +import org.eclipse.equinox.p2.metadata.*; import org.eclipse.equinox.p2.operations.ProfileModificationJob; import org.eclipse.equinox.p2.operations.ProvisioningSession; import org.eclipse.equinox.p2.repository.IRepositoryManager; @@ -83,8 +77,8 @@ public abstract class AbstractProvisioningUITest extends AbstractProvisioningTes category = createNamedIU(CATEGORYIU, CATEGORYIU, Version.create("1.0.0"), true); createTestMetdataRepository(new IInstallableUnit[] {top1, top2, uninstalled, upgrade}); - metaManager = (IMetadataRepositoryManager) ServiceHelper.getService(TestActivator.context, IMetadataRepositoryManager.SERVICE_NAME); - artifactManager = (IArtifactRepositoryManager) ServiceHelper.getService(TestActivator.context, IArtifactRepositoryManager.SERVICE_NAME); + metaManager = (IMetadataRepositoryManager) getAgent().getService(IMetadataRepositoryManager.SERVICE_NAME); + artifactManager = (IArtifactRepositoryManager) getAgent().getService(IArtifactRepositoryManager.SERVICE_NAME); File site = new File(TestActivator.getTestDataFolder().toString(), TEST_REPO_PATH); testRepoLocation = site.toURI(); metaManager.addRepository(testRepoLocation); diff --git a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/query/TranslationSupportTests.java b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/query/TranslationSupportTests.java index e7600a856..33632cdc4 100644 --- a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/query/TranslationSupportTests.java +++ b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/query/TranslationSupportTests.java @@ -11,34 +11,23 @@ *******************************************************************************/ package org.eclipse.equinox.p2.tests.ui.query; -import org.eclipse.equinox.p2.metadata.Version; - -import org.eclipse.equinox.p2.metadata.IProvidedCapability; - -import org.eclipse.equinox.p2.metadata.IInstallableUnitFragment; -import org.eclipse.equinox.p2.metadata.ILicense; - -import org.eclipse.equinox.p2.metadata.query.InstallableUnitQuery; - import java.io.File; import java.net.URI; import java.net.URISyntaxException; import java.util.*; -import org.eclipse.equinox.internal.p2.core.helpers.ServiceHelper; import org.eclipse.equinox.internal.p2.engine.Profile; import org.eclipse.equinox.internal.p2.metadata.IRequiredCapability; import org.eclipse.equinox.internal.p2.metadata.TranslationSupport; -import org.eclipse.equinox.internal.provisional.p2.metadata.*; +import org.eclipse.equinox.internal.provisional.p2.metadata.MetadataFactory; import org.eclipse.equinox.internal.provisional.p2.metadata.MetadataFactory.InstallableUnitDescription; import org.eclipse.equinox.internal.provisional.p2.metadata.MetadataFactory.InstallableUnitFragmentDescription; import org.eclipse.equinox.p2.core.ProvisionException; -import org.eclipse.equinox.p2.metadata.ICopyright; -import org.eclipse.equinox.p2.metadata.IInstallableUnit; +import org.eclipse.equinox.p2.metadata.*; +import org.eclipse.equinox.p2.metadata.query.InstallableUnitQuery; import org.eclipse.equinox.p2.query.IQueryResult; import org.eclipse.equinox.p2.query.IQueryable; import org.eclipse.equinox.p2.repository.metadata.IMetadataRepository; import org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager; -import org.eclipse.equinox.p2.tests.TestActivator; /** * Tests for {@link TranslationSupport}. @@ -59,7 +48,7 @@ public class TranslationSupportTests extends AbstractQueryTest { } public void testFeatureProperties() { - IMetadataRepositoryManager repoMan = (IMetadataRepositoryManager) ServiceHelper.getService(TestActivator.getContext(), IMetadataRepositoryManager.SERVICE_NAME); + IMetadataRepositoryManager repoMan = (IMetadataRepositoryManager) getAgent().getService(IMetadataRepositoryManager.SERVICE_NAME); File site = getTestData("0.1", "/testData/metadataRepo/externalized"); URI location = site.toURI(); IMetadataRepository repository; |