diff options
author | DJ Houghton | 2010-02-22 20:10:37 +0000 |
---|---|---|
committer | DJ Houghton | 2010-02-22 20:10:37 +0000 |
commit | 15aa27467f64b7e9c70687cc58bf17b31c766160 (patch) | |
tree | 5fee81e8de249653d34efd3cb66bb2301d5f5248 /bundles/org.eclipse.equinox.p2.extensionlocation | |
parent | 6a9c28a2de409130ba25e58079543f038b632d4b (diff) | |
download | rt.equinox.p2-15aa27467f64b7e9c70687cc58bf17b31c766160.tar.gz rt.equinox.p2-15aa27467f64b7e9c70687cc58bf17b31c766160.tar.xz rt.equinox.p2-15aa27467f64b7e9c70687cc58bf17b31c766160.zip |
Bug 303269 - [repository] The method signatures on IMetadataRepository should take collections
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.extensionlocation')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationMetadataRepository.java | 38 |
1 files changed, 31 insertions, 7 deletions
diff --git a/bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationMetadataRepository.java b/bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationMetadataRepository.java index d5b748288..d742fc6b4 100644 --- a/bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationMetadataRepository.java +++ b/bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationMetadataRepository.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2009 IBM Corporation and others. + * Copyright (c) 2008, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -82,29 +82,44 @@ public class ExtensionLocationMetadataRepository extends AbstractMetadataReposit state = value; } + // TODO remove + @Override + public void addInstallableUnits(IInstallableUnit[] installableUnits) { + throw new UnsupportedOperationException(); + } + /* (non-Javadoc) - * @see org.eclipse.equinox.internal.provisional.p2.metadata.repository.IMetadataRepository#addInstallableUnits(org.eclipse.equinox.internal.provisional.p2.metadata.IInstallableUnit[]) + * @see org.eclipse.equinox.p2.repository.metadata.IMetadataRepository#addInstallableUnits(java.util.Collection) */ - public void addInstallableUnits(IInstallableUnit[] installableUnits) { + @Override + public void addInstallableUnits(Collection<IInstallableUnit> installableUnits) { throw new UnsupportedOperationException(); } /* (non-Javadoc) - * @see org.eclipse.equinox.internal.provisional.p2.metadata.repository.IMetadataRepository#removeAll() + * @see org.eclipse.equinox.p2.repository.metadata.spi.AbstractMetadataRepository#removeAll() */ + @Override public void removeAll() { throw new UnsupportedOperationException(); } + // TODO remove + @Override + public boolean removeInstallableUnits(IInstallableUnit[] installableUnits, IProgressMonitor monitor) { + throw new UnsupportedOperationException(); + } + /* (non-Javadoc) - * @see org.eclipse.equinox.internal.provisional.p2.metadata.repository.IMetadataRepository#removeInstallableUnits(org.eclipse.equinox.internal.provisional.p2.query.Query, org.eclipse.core.runtime.IProgressMonitor) + * @see org.eclipse.equinox.p2.repository.metadata.IMetadataRepository#removeInstallableUnits(java.util.Collection) */ - public boolean removeInstallableUnits(IInstallableUnit[] installableUnits, IProgressMonitor monitor) { + @Override + public boolean removeInstallableUnits(Collection<IInstallableUnit> installableUnits) { throw new UnsupportedOperationException(); } /* (non-Javadoc) - * @see org.eclipse.equinox.internal.provisional.p2.query.IQueryable#query(org.eclipse.equinox.internal.provisional.p2.query.Query, org.eclipse.equinox.internal.provisional.p2.query.Collector, org.eclipse.core.runtime.IProgressMonitor) + * @see org.eclipse.equinox.p2.query.IQueryable#query(org.eclipse.equinox.p2.query.IQuery, org.eclipse.core.runtime.IProgressMonitor) */ public IQueryResult<IInstallableUnit> query(IQuery<IInstallableUnit> query, IProgressMonitor monitor) { ensureInitialized(); @@ -177,15 +192,24 @@ public class ExtensionLocationMetadataRepository extends AbstractMetadataReposit /* (non-Javadoc) * @see org.eclipse.equinox.p2.repository.spi.AbstractRepository#getProperties() */ + @Override public Map<String, String> getProperties() { ensureInitialized(); return metadataRepository.getProperties(); } + /* (non-Javadoc) + * @see org.eclipse.equinox.p2.repository.metadata.spi.AbstractMetadataRepository#initialize(org.eclipse.equinox.p2.repository.metadata.spi.AbstractMetadataRepository.RepositoryState) + */ + @Override public void initialize(RepositoryState repositoryState) { //nothing to do } + /* (non-Javadoc) + * @see org.eclipse.equinox.p2.repository.spi.AbstractRepository#setProperty(java.lang.String, java.lang.String) + */ + @Override public String setProperty(String key, String value) { ensureInitialized(); String oldValue = metadataRepository.setProperty(key, value); |