Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2008, 2011 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 http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation /
 
 package org.eclipse.equinox.internal.p2.updatesite.metadata;
 
 import java.net.URI;
 import java.util.Map;
 
 public class UpdateSiteMetadataRepository implements IMetadataRepository {
 
 	public static final String TYPE = "org.eclipse.equinox.p2.updatesite.metadataRepository"//$NON-NLS-1$
 	public static final String VERSION = Integer.toString(1);
 
 	private URI location;
 
 	public UpdateSiteMetadataRepository(URI locationIMetadataRepository repository) {
 		this. = location;
 		this. = repository;
 	}
 
 	// TODO remove
 	public void addInstallableUnits(IInstallableUnit[] installableUnits) {
 		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
 	}
 
 	/* (non-Javadoc)
 	 * @see org.eclipse.equinox.p2.repository.metadata.IMetadataRepository#addInstallableUnits(java.util.Collection)
 	 */
 	public void addInstallableUnits(Collection<IInstallableUnitinstallableUnits) {
 		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
 	}
 
 	/* (non-Javadoc)
 	 * @see org.eclipse.equinox.p2.repository.metadata.IMetadataRepository#addReferences(java.util.Collection)
 	 */
 	public void addReferences(Collection<? extends IRepositoryReferencereferences) {
 		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
 	}
 
 	/* (non-Javadoc)
 	 * @see org.eclipse.equinox.p2.repository.metadata.IMetadataRepository#getReferences()
 	 */
 	}
 
 	/* (non-Javadoc)
 	 * @see org.eclipse.equinox.p2.repository.metadata.IMetadataRepository#removeAll()
 	 */
 	public void removeAll() {
 		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
 	}
 
 	// TODO remove
 	public boolean removeInstallableUnits(IInstallableUnit[] installableUnitsIProgressMonitor monitor) {
 		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
 	}
 
 	/* (non-Javadoc)
 	 * @see org.eclipse.equinox.p2.repository.metadata.IMetadataRepository#removeInstallableUnits(java.util.Collection)
 	 */
 	public boolean removeInstallableUnits(Collection<IInstallableUnitinstallableUnits) {
 		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
 	}
 
 	/* (non-Javadoc)
 	 * @see org.eclipse.equinox.p2.repository.IRepository#getDescription()
 	 */
 	public String getDescription() {
 	}
 
 	/* (non-Javadoc)
 	 * @see org.eclipse.equinox.p2.repository.IRepository#getLocation()
 	 */
 	public URI getLocation() {
 		return ;
 	}
 
 	/* (non-Javadoc)
	 * @see org.eclipse.equinox.p2.repository.IRepository#getName()
	 */
	public String getName() {
		return .getName();
	}
	/* (non-Javadoc)
	 * @see org.eclipse.equinox.p2.repository.IRepository#getProperties()
	 */
	public Map<StringStringgetProperties() {
	}
	public String getProperty(String key) {
		return .getProperty(key);
	}
	/* (non-Javadoc)
	 * @see org.eclipse.equinox.p2.repository.IRepository#getProvider()
	 */
	public String getProvider() {
	}
	/* (non-Javadoc)
	 * @see org.eclipse.equinox.p2.repository.IRepository#getProvisioningAgent()
	 */
	}
	/* (non-Javadoc)
	 * @see org.eclipse.equinox.p2.repository.IRepository#getType()
	 */
	public String getType() {
		return ;
	}
	/* (non-Javadoc)
	 * @see org.eclipse.equinox.p2.repository.IRepository#getVersion()
	 */
	public String getVersion() {
		return ;
	}
	/* (non-Javadoc)
	 * @see org.eclipse.equinox.p2.repository.IRepository#isModifiable()
	 */
	public boolean isModifiable() {
		return false;
	}
	/* (non-Javadoc)
	 * @see org.eclipse.equinox.p2.repository.IRepository#setDescription(java.lang.String)
	 */
	public void setDescription(String description) {
		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
	}
	/* (non-Javadoc)
	 * @see org.eclipse.equinox.p2.repository.IRepository#setName(java.lang.String)
	 */
	public void setName(String name) {
		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
	}
	/* (non-Javadoc)
	 * @see org.eclipse.equinox.p2.repository.IRepository#setProperty(java.lang.String, java.lang.String)
	 */
	public String setProperty(String keyString valueIProgressMonitor monitor) {
		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
	}
	/* (non-Javadoc)
	 * @see org.eclipse.equinox.p2.repository.IRepository#setProperty(java.lang.String, java.lang.String)
	 */
	public String setProperty(String keyString value) {
		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
	}
	/* (non-Javadoc)
	 * @see org.eclipse.equinox.p2.repository.IRepository#setProvider(java.lang.String)
	 */
	public void setProvider(String provider) {
		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
	}
	@SuppressWarnings("rawtypes")
	public Object getAdapter(Class adapter) {
		return .getAdapter(adapter);
	}
	/* (non-Javadoc)
	 * @see org.eclipse.equinox.p2.query.IQueryable#query(org.eclipse.equinox.p2.query.IQuery, org.eclipse.core.runtime.IProgressMonitor)
	 */
		return .query(querymonitor);
	}

		return .executeBatch(runnablemonitor);
	}
	/* (non-Javadoc)
	 * @see org.eclipse.equinox.p2.repository.metadata.IMetadataRepository#compress(IPool<IInstallableUnit> iuPool)
	 */
	public void compress(IPool<IInstallableUnitiuPool) {
	}
New to GrepCode? Check out our FAQ X