Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.update.core
Class FeatureContentProvider

java.lang.Object
  extended by 
org.eclipse.update.core.FeatureContentProvider
All Implemented Interfaces:
IFeatureContentProvider

Deprecated. The org.eclipse.update component has been replaced by Equinox p2. This provisional API was never promoted to stable API, and may be removed from a future release of the platform.

public abstract class FeatureContentProvider
extends Object
implements IFeatureContentProvider

Base implementation of a feature content provider. This class provides a set of helper methods useful for implementing feature content providers. In particular, methods dealing with downloading and caching of feature files.

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.

Since:
2.0
See Also:
IFeatureContentProvider

Nested Class Summary
 class FeatureContentProvider.FileFilter
          Deprecated.  
 
Field Summary
static  String JAR_EXTENSION
          Deprecated.  
 
Constructor Summary
FeatureContentProvider ( URL base)
          Deprecated. Feature content provider constructor
 
Method Summary
  File asLocalFile ( ContentReference ref, InstallMonitor monitor)
          Deprecated. Returns the specified reference as a local file.
  ContentReference asLocalReference ( ContentReference ref, InstallMonitor monitor)
          Deprecated. Returns the specified reference as a local file system reference.
 long getDownloadSizeFor ( IPluginEntry[] pluginEntries, INonPluginEntry[] nonPluginEntries)
          Deprecated. Returns the total size of all archives required for the specified plug-in and non-plug-in entries (the "packaging" view).
  IFeature getFeature ()
          Deprecated. Returns the feature associated with this content provider.
 long getInstallSizeFor ( IPluginEntry[] pluginEntries, INonPluginEntry[] nonPluginEntries)
          Deprecated. 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)
          Deprecated. Returns the path identifer for a non plugin entry.
protected   String getPathID ( IPluginEntry entry)
          Deprecated. Returns the path identifier for a plugin entry.
  URL getURL ()
          Deprecated. Returns the feature url.
protected   File getWorkingDirectory ()
          Deprecated. Returns working directory for this content provider
 void setFeature ( IFeature feature)
          Deprecated. Sets the feature associated with this content provider.
protected  void validatePermissions ( ContentReference[] references)
          Deprecated. Sets the permission of all the ContentReferences Check for the .permissions contentReference and use it to set the permissions of other ContentReference
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.update.core. IFeatureContentProvider
getArchiveReferences, getFeatureEntryArchiveReferences, getFeatureEntryContentReferences, getFeatureManifestReference, getNonPluginEntryArchiveReferences, getPluginEntryArchiveReferences, getPluginEntryContentReferences, getVerifier
 

Field Detail

JAR_EXTENSION

public static final 
String JAR_EXTENSION
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

FeatureContentProvider

public FeatureContentProvider(
URL base)
Deprecated. 
Feature content provider constructor

Parameters:
base - feature URL. The interpretation of this URL is specific to each content provider.
Since:
2.0
Method Detail

getURL

public 
URL getURL()
Deprecated. 
Returns the feature url.

Specified by:
getURL in interface IFeatureContentProvider
Returns:
feature url
See Also:
IFeatureContentProvider.getURL()

getFeature

public 
IFeature getFeature()
Deprecated. 
Returns the feature associated with this content provider.

Specified by:
getFeature in interface IFeatureContentProvider
Returns:
feature for this content provider
See Also:
IFeatureContentProvider.getFeature()

setFeature

public void setFeature(
IFeature feature)
Deprecated. 
Sets the feature associated with this content provider.

Specified by:
setFeature in interface IFeatureContentProvider
Parameters:
feature - feature for this content provider
See Also:
IFeatureContentProvider.setFeature(IFeature)

asLocalReference

public 
ContentReference asLocalReference(
ContentReference ref,
                                         
InstallMonitor monitor)
                                  throws 
IOException,
                                         
CoreException
Deprecated. 
Returns the specified reference as a local file system reference. If required, the file represented by the specified content reference is first downloaded to the local system

Parameters:
ref - content reference
monitor - progress monitor, can be null
Throws:
IOException
CoreException
Since:
2.0

asLocalFile

public 
File asLocalFile(
ContentReference ref,
                        
InstallMonitor monitor)
                 throws 
IOException,
                        
CoreException
Deprecated. 
Returns the specified reference as a local file. If required, the file represented by the specified content reference is first downloaded to the local system

Parameters:
ref - content reference
monitor - progress monitor, can be null
Throws:
IOException
CoreException
Since:
2.0

getWorkingDirectory

protected 
File getWorkingDirectory()
                            throws 
IOException
Deprecated. 
Returns working directory for this content provider

Returns:
working directory
Throws:
IOException
Since:
2.0

getDownloadSizeFor

public long getDownloadSizeFor(
IPluginEntry[] pluginEntries,
                               
INonPluginEntry[] nonPluginEntries)
Deprecated. 
Returns the total size of all archives required for the specified plug-in and non-plug-in entries (the "packaging" view).

Specified by:
getDownloadSizeFor in interface IFeatureContentProvider
Parameters:
pluginEntries - an array of plug-in entries
nonPluginEntries - an array of non-plug-in entries
Returns:
total download size, or an indication that size could not be determined
See Also:
IFeatureContentProvider.getDownloadSizeFor(IPluginEntry[], INonPluginEntry[])

getInstallSizeFor

public long getInstallSizeFor(
IPluginEntry[] pluginEntries,
                              
INonPluginEntry[] nonPluginEntries)
Deprecated. 
Returns the total size of all files required for the specified plug-in and non-plug-in entries (the "logical" view).

Specified by:
getInstallSizeFor in interface IFeatureContentProvider
Parameters:
pluginEntries - an array of plug-in entries
nonPluginEntries - an array of non-plug-in entries
Returns:
total download size, or an indication that size could not be determined
See Also:
IFeatureContentProvider.getInstallSizeFor(IPluginEntry[], INonPluginEntry[])

getPathID

protected 
String getPathID(
IPluginEntry entry)
Deprecated. 
Returns the path identifier for a plugin entry. plugins/<pluginId>_<pluginVersion>.jar

Returns:
the path identifier

getPathID

protected 
String getPathID(
INonPluginEntry entry)
Deprecated. 
Returns the path identifer for a non plugin entry. features/<featureId>_<featureVersion>/<dataId>

Returns:
the path identifier

validatePermissions

protected void validatePermissions(
ContentReference[] references)
Deprecated. 
Sets the permission of all the ContentReferences Check for the .permissions contentReference and use it to set the permissions of other ContentReference


Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire