package org.eclipse.update.internal.ui.model; | |
import java.io.InputStream; | |
import java.net.URL; | |
import org.eclipse.core.runtime.CoreException; | |
import org.eclipse.core.runtime.IProgressMonitor; | |
import org.eclipse.update.core.IFeature; | |
import org.eclipse.update.core.IFeatureContentConsumer; | |
import org.eclipse.update.core.IFeatureContentProvider; | |
import org.eclipse.update.core.IFeatureReference; | |
import org.eclipse.update.core.IImport; | |
import org.eclipse.update.core.IInstallHandlerEntry; | |
import org.eclipse.update.core.INonPluginEntry; | |
import org.eclipse.update.core.IPluginEntry; | |
import org.eclipse.update.core.ISite; | |
import org.eclipse.update.core.IURLEntry; | |
import org.eclipse.update.core.IVerificationListener; | |
import org.eclipse.update.core.VersionedIdentifier; | |
public class MissingFeature implements IFeature { | |
private URL url; | |
private ISite site; | |
private VersionedIdentifier id = new VersionedIdentifier("unknown", "0.0.0"); | |
public MissingFeature(ISite site, URL url) { | |
this.url = url; | |
} | |
/* | |
* @see IFeature#getIdentifier() | |
*/ | |
public VersionedIdentifier getVersionedIdentifier() { | |
return id; | |
} | |
/* | |
* @see IFeature#getSite() | |
*/ | |
public ISite getSite() { | |
return site; | |
} | |
/* | |
* @see IFeature#getLabel() | |
*/ | |
public String getLabel() { | |
return url.toString(); | |
} | |
/* | |
* @see IFeature#getURL() | |
*/ | |
public URL getURL() { | |
return url; | |
} | |
/* | |
* @see IFeature#getUpdateInfo() | |
*/ | |
public IURLEntry getUpdateSiteEntry() { | |
return null; | |
} | |
/* | |
* @see IFeature#getDiscoveryInfos() | |
*/ | |
public IURLEntry[] getDiscoverySiteEntries() { | |
return null; | |
} | |
/* | |
* @see IFeature#getProvider() | |
*/ | |
public String getProvider() { | |
return "Unknown"; | |
} | |
/* | |
* @see IFeature#getDescription() | |
*/ | |
public IURLEntry getDescription() { | |
return null; | |
} | |
/* | |
* @see IFeature#getCopyright() | |
*/ | |
public IURLEntry getCopyright() { | |
return null; | |
} | |
/* | |
* @see IFeature#getLicense() | |
*/ | |
public IURLEntry getLicense() { | |
return null; | |
} | |
/* | |
* @see IFeature#getOS() | |
*/ | |
public String getOS() { | |
return null; | |
} | |
/* | |
* @see IFeature#getWS() | |
*/ | |
public String getWS() { | |
return null; | |
} | |
/* | |
* @see IFeature#getNL() | |
*/ | |
public String getNL() { | |
return null; | |
} | |
/* | |
* @see IFeature#getArch() | |
*/ | |
public String getArch() { | |
return null; | |
} | |
/* | |
* @see IFeature#getImage() | |
*/ | |
public URL getImage() { | |
return null; | |
} | |
/* | |
* @see IFeature#getImports() | |
*/ | |
public IImport[] getImports() { | |
return null; | |
} | |
/* | |
* @see IFeature#getArchives() | |
*/ | |
public String[] getArchives() { | |
return null; | |
} | |
/* | |
* @see IFeature#getDataEntries() | |
*/ | |
public INonPluginEntry[] getNonPluginEntries() { | |
return null; | |
} | |
/* | |
* @see IFeature#addDataEntry(IDataEntry) | |
*/ | |
public void addNonPluginEntry(INonPluginEntry dataEntry) { | |
} | |
/* | |
* @see IFeature#getDownloadSize() | |
*/ | |
public long getDownloadSize() { | |
return 0; | |
} | |
/* | |
* @see IFeature#getInstallSize(ISite) | |
*/ | |
public long getInstallSize() { | |
return 0; | |
} | |
/* | |
* @see IFeature#isPrimary() | |
*/ | |
public boolean isPrimary() { | |
return false; | |
} | |
/* | |
* @see IFeature#getApplication() | |
*/ | |
public String getApplication() { | |
return null; | |
} | |
/* | |
* @see IPluginContainer#getPluginEntries() | |
*/ | |
public IPluginEntry[] getPluginEntries() { | |
return new IPluginEntry[0]; | |
} | |
/* | |
* @see IPluginContainer#getPluginEntryCount() | |
*/ | |
public int getPluginEntryCount() { | |
return 0; | |
} | |
/* | |
* @see IPluginContainer#getDownloadSize(IPluginEntry) | |
*/ | |
public long getDownloadSize(IPluginEntry entry) { | |
return 0; | |
} | |
/* | |
* @see IPluginContainer#getInstallSize(IPluginEntry) | |
*/ | |
public long getInstallSize(IPluginEntry entry) { | |
return 0; | |
} | |
/* | |
* @see IPluginContainer#addPluginEntry(IPluginEntry) | |
*/ | |
public void addPluginEntry(IPluginEntry pluginEntry) { | |
} | |
/* | |
* @see IPluginContainer#store(IPluginEntry, String, InputStream) | |
*/ | |
public void store(IPluginEntry entry, String name, InputStream inStream) | |
throws CoreException { | |
} | |
/* | |
* @see IAdaptable#getAdapter(Class) | |
*/ | |
public Object getAdapter(Class adapter) { | |
return null; | |
} | |
/* | |
* @see IPluginContainer#remove(IPluginEntry) | |
*/ | |
public void remove(IPluginEntry entry) throws CoreException { | |
} | |
/* | |
* @see IFeature#setFeatureContentProvider(IFeatureContentProvider) | |
*/ | |
public void setFeatureContentProvider(IFeatureContentProvider featureContentProvider) { | |
} | |
/* | |
* @see IFeature#getFeatureContentConsumer() | |
*/ | |
public IFeatureContentConsumer getFeatureContentConsumer() throws CoreException { | |
return null; | |
} | |
/* | |
* @see IFeature#setSite(ISite) | |
*/ | |
public void setSite(ISite site) throws CoreException { | |
this.site = site; | |
} | |
/* | |
* @see IFeature#getFeatureContentProvider() | |
*/ | |
public IFeatureContentProvider getFeatureContentProvider() throws CoreException { | |
return null; | |
} | |
/* | |
* @see IFeature#install(IFeature,IVerifier, IProgressMonitor) | |
*/ | |
public IFeatureReference install(IFeature targetFeature, IVerificationListener verificationListener, IProgressMonitor monitor) throws CoreException { | |
return null; | |
} | |
/* | |
* @see IFeature#remove(IProgressMonitor) | |
*/ | |
public void remove(IProgressMonitor monitor) throws CoreException { | |
} | |
/* | |
* @see IPluginContainer#remove(IPluginEntry, IProgressMonitor) | |
*/ | |
public void remove(IPluginEntry entry, IProgressMonitor monitor) throws CoreException { | |
} | |
/* | |
* @see IFeature#getNonPluginEntryCount() | |
*/ | |
public int getNonPluginEntryCount() { | |
return 0; | |
} | |
/* | |
* @see IFeature#getInstallHandlerEntry() | |
*/ | |
public IInstallHandlerEntry getInstallHandlerEntry() { | |
return null; | |
} | |
} | |