public abstract class FeatureContentProvider extends Object implements IFeatureContentProvider
This class must be subclassed by clients.
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
IFeatureContentProvider| Modifier and Type | Class and Description |
|---|---|
class |
FeatureContentProvider.FileFilter |
| Modifier and Type | Field and Description |
|---|---|
static String |
JAR_EXTENSION |
| Constructor and Description |
|---|
FeatureContentProvider(URL base)
Feature content provider constructor
|
| Modifier and Type | Method and Description |
|---|---|
File |
asLocalFile(ContentReference ref,
InstallMonitor monitor)
Returns the specified reference as a local file.
|
ContentReference |
asLocalReference(ContentReference ref,
InstallMonitor monitor)
Returns the specified reference as a local file system reference.
|
long |
getDownloadSizeFor(IPluginEntry[] pluginEntries,
INonPluginEntry[] nonPluginEntries)
Returns the total size of all archives required for the specified
plug-in and non-plug-in entries (the "packaging" view).
|
IFeature |
getFeature()
Returns the feature associated with this content provider.
|
long |
getInstallSizeFor(IPluginEntry[] pluginEntries,
INonPluginEntry[] nonPluginEntries)
Returns the total size of all files required for the specified plug-in
and non-plug-in entries (the "logical" view).
|
protected String |
getPathID(INonPluginEntry entry)
Returns the path identifer for a non plugin entry.
|
protected String |
getPathID(IPluginEntry entry)
Returns the path identifier for a plugin entry.
|
URL |
getURL()
Returns the feature url.
|
protected File |
getWorkingDirectory()
Returns working directory for this content provider
|
void |
setFeature(IFeature feature)
Sets the feature associated with this content provider.
|
protected void |
validatePermissions(ContentReference[] references)
Sets the permission of all the ContentReferences Check for the
.permissions contentReference and use it to set the permissions of other
ContentReference
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArchiveReferences, getFeatureEntryArchiveReferences, getFeatureEntryContentReferences, getFeatureManifestReference, getNonPluginEntryArchiveReferences, getPluginEntryArchiveReferences, getPluginEntryContentReferences, getVerifierpublic static final String JAR_EXTENSION
public FeatureContentProvider(URL base)
base - feature URL. The interpretation of this URL is specific to
each content provider.public URL getURL()
getURL in interface IFeatureContentProviderIFeatureContentProvider.getURL()public IFeature getFeature()
getFeature in interface IFeatureContentProviderIFeatureContentProvider.getFeature()public void setFeature(IFeature feature)
setFeature in interface IFeatureContentProviderfeature - feature for this content providerIFeatureContentProvider.setFeature(IFeature)public ContentReference asLocalReference(ContentReference ref, InstallMonitor monitor) throws IOException, CoreException
ref - content referencemonitor - progress monitor, can be nullIOExceptionCoreExceptionpublic File asLocalFile(ContentReference ref, InstallMonitor monitor) throws IOException, CoreException
ref - content referencemonitor - progress monitor, can be nullIOExceptionCoreExceptionprotected File getWorkingDirectory() throws IOException
IOExceptionpublic long getDownloadSizeFor(IPluginEntry[] pluginEntries, INonPluginEntry[] nonPluginEntries)
getDownloadSizeFor in interface IFeatureContentProviderpluginEntries - an array of plug-in entriesnonPluginEntries - an array of non-plug-in entriesIFeatureContentProvider.getDownloadSizeFor(IPluginEntry[],
INonPluginEntry[])public long getInstallSizeFor(IPluginEntry[] pluginEntries, INonPluginEntry[] nonPluginEntries)
getInstallSizeFor in interface IFeatureContentProviderpluginEntries - an array of plug-in entriesnonPluginEntries - an array of non-plug-in entriesIFeatureContentProvider.getInstallSizeFor(IPluginEntry[],
INonPluginEntry[])protected String getPathID(IPluginEntry entry)
plugins/<pluginId>_<pluginVersion>.jarprotected String getPathID(INonPluginEntry entry)
features/<featureId>_<featureVersion>/<dataId>protected void validatePermissions(ContentReference[] references)
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.