Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusan Franklin2010-12-20 17:38:40 -0500
committerSusan Franklin2010-12-20 17:38:40 -0500
commit9e89ef4b80a63ba00bd27fe1f92e4e863a82a977 (patch)
tree6d9b0871de36f9f321f321767553052a48df4849 /bundles/org.eclipse.equinox.p2.ui.admin
parent26da76d5c5c87f1d9aadb508ff1534773c228bde (diff)
downloadrt.equinox.p2-9e89ef4b80a63ba00bd27fe1f92e4e863a82a977.tar.gz
rt.equinox.p2-9e89ef4b80a63ba00bd27fe1f92e4e863a82a977.tar.xz
rt.equinox.p2-9e89ef4b80a63ba00bd27fe1f92e4e863a82a977.zip
Bug 311633 - [ui] RepositoryTracker duplicate checking should consult the repo managerv20101221-0005
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.ui.admin')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/ArtifactRepositoryTracker.java5
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/MetadataRepositoryTracker.java5
2 files changed, 10 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/ArtifactRepositoryTracker.java b/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/ArtifactRepositoryTracker.java
index ba8ce8de6..25c8f4bd0 100644
--- a/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/ArtifactRepositoryTracker.java
+++ b/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/ArtifactRepositoryTracker.java
@@ -82,4 +82,9 @@ public class ArtifactRepositoryTracker extends RepositoryTracker {
IArtifactRepositoryManager getArtifactRepositoryManager() {
return ProvUI.getArtifactRepositoryManager(ui.getSession());
}
+
+ @Override
+ protected boolean contains(URI location, ProvisioningSession session) {
+ return ProvUI.getArtifactRepositoryManager(session).contains(location);
+ }
} \ No newline at end of file
diff --git a/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/MetadataRepositoryTracker.java b/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/MetadataRepositoryTracker.java
index 107a53152..50798e3e9 100644
--- a/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/MetadataRepositoryTracker.java
+++ b/bundles/org.eclipse.equinox.p2.ui.admin/src/org/eclipse/equinox/internal/p2/ui/admin/MetadataRepositoryTracker.java
@@ -83,4 +83,9 @@ public class MetadataRepositoryTracker extends RepositoryTracker {
IMetadataRepositoryManager getMetadataRepositoryManager() {
return ProvUI.getMetadataRepositoryManager(ui.getSession());
}
+
+ @Override
+ protected boolean contains(URI location, ProvisioningSession session) {
+ return ProvUI.getMetadataRepositoryManager(session).contains(location);
+ }
} \ No newline at end of file

Back to the top